chromium/content/web_test/browser/web_test_javascript_dialog_manager.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/web_test/browser/web_test_javascript_dialog_manager.h"

#include <utility>

#include "base/command_line.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/browser/web_contents.h"
#include "content/shell/browser/shell_javascript_dialog.h"
#include "content/shell/common/shell_switches.h"
#include "content/web_test/browser/web_test_control_host.h"

namespace content {

namespace {
bool DumpJavascriptDialog() {}

bool ShouldStayOnPageAfterHandlingBeforeUnload() {}

}  // namespace

WebTestJavaScriptDialogManager::WebTestJavaScriptDialogManager() = default;

WebTestJavaScriptDialogManager::~WebTestJavaScriptDialogManager() = default;

void WebTestJavaScriptDialogManager::RunJavaScriptDialog(
    WebContents* web_contents,
    RenderFrameHost* render_frame_host,
    JavaScriptDialogType dialog_type,
    const std::u16string& message_text,
    const std::u16string& default_prompt_text,
    DialogClosedCallback callback,
    bool* did_suppress_message) {}

void WebTestJavaScriptDialogManager::RunBeforeUnloadDialog(
    WebContents* web_contents,
    RenderFrameHost* render_frame_host,
    bool is_reload,
    DialogClosedCallback callback) {}

}  // namespace content