OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ | 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ |
6 #define CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ | 6 #define CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 bool should_stay_on_page_after_handling_before_unload() const { | 93 bool should_stay_on_page_after_handling_before_unload() const { |
94 return should_stay_on_page_after_handling_before_unload_; | 94 return should_stay_on_page_after_handling_before_unload_; |
95 } | 95 } |
96 | 96 |
97 // This method can be invoked on any thread. | 97 // This method can be invoked on any thread. |
98 bool CanOpenWindows() const; | 98 bool CanOpenWindows() const; |
99 | 99 |
100 // WebContentsObserver implementation. | 100 // WebContentsObserver implementation. |
101 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 101 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
102 virtual void PluginCrashed(const FilePath& plugin_path) OVERRIDE; | 102 virtual void PluginCrashed(const FilePath& plugin_path, |
| 103 base::ProcessId plugin_pid) OVERRIDE; |
103 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 104 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
104 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 105 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
105 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; | 106 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; |
106 | 107 |
107 // NotificationObserver implementation. | 108 // NotificationObserver implementation. |
108 virtual void Observe(int type, | 109 virtual void Observe(int type, |
109 const NotificationSource& source, | 110 const NotificationSource& source, |
110 const NotificationDetails& details) OVERRIDE; | 111 const NotificationDetails& details) OVERRIDE; |
111 | 112 |
112 private: | 113 private: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool can_open_windows_; | 169 bool can_open_windows_; |
169 | 170 |
170 NotificationRegistrar registrar_; | 171 NotificationRegistrar registrar_; |
171 | 172 |
172 DISALLOW_COPY_AND_ASSIGN(WebKitTestController); | 173 DISALLOW_COPY_AND_ASSIGN(WebKitTestController); |
173 }; | 174 }; |
174 | 175 |
175 } // namespace content | 176 } // namespace content |
176 | 177 |
177 #endif // CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ | 178 #endif // CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ |
OLD | NEW |