| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/shell/browser/layout_test/layout_test_javascript_dialog_manage
r.h" | 5 #include "content/shell/browser/layout_test/layout_test_javascript_dialog_manage
r.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| 11 #include "content/shell/browser/blink_test_controller.h" |
| 11 #include "content/shell/browser/shell_javascript_dialog.h" | 12 #include "content/shell/browser/shell_javascript_dialog.h" |
| 12 #include "content/shell/browser/webkit_test_controller.h" | |
| 13 #include "content/shell/common/shell_switches.h" | 13 #include "content/shell/common/shell_switches.h" |
| 14 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 LayoutTestJavaScriptDialogManager::LayoutTestJavaScriptDialogManager() { | 18 LayoutTestJavaScriptDialogManager::LayoutTestJavaScriptDialogManager() { |
| 19 } | 19 } |
| 20 | 20 |
| 21 LayoutTestJavaScriptDialogManager::~LayoutTestJavaScriptDialogManager() { | 21 LayoutTestJavaScriptDialogManager::~LayoutTestJavaScriptDialogManager() { |
| 22 } | 22 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 void LayoutTestJavaScriptDialogManager::RunBeforeUnloadDialog( | 37 void LayoutTestJavaScriptDialogManager::RunBeforeUnloadDialog( |
| 38 WebContents* web_contents, | 38 WebContents* web_contents, |
| 39 const base::string16& message_text, | 39 const base::string16& message_text, |
| 40 bool is_reload, | 40 bool is_reload, |
| 41 const DialogClosedCallback& callback) { | 41 const DialogClosedCallback& callback) { |
| 42 callback.Run(true, base::string16()); | 42 callback.Run(true, base::string16()); |
| 43 return; | 43 return; |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace content | 46 } // namespace content |
| OLD | NEW |