OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ |
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <ostream> | 10 #include <ostream> |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // True if the controller was reset successfully. | 134 // True if the controller was reset successfully. |
135 bool ResetAfterLayoutTest(); | 135 bool ResetAfterLayoutTest(); |
136 | 136 |
137 // IPC messages forwarded from elsewhere. | 137 // IPC messages forwarded from elsewhere. |
138 void OnLayoutTestRuntimeFlagsChanged( | 138 void OnLayoutTestRuntimeFlagsChanged( |
139 int sender_process_host_id, | 139 int sender_process_host_id, |
140 const base::DictionaryValue& changed_layout_test_runtime_flags); | 140 const base::DictionaryValue& changed_layout_test_runtime_flags); |
141 void OnTestFinishedInSecondaryRenderer(); | 141 void OnTestFinishedInSecondaryRenderer(); |
142 | 142 |
143 // Makes sure that the potentially new renderer associated with |frame| is 1) | 143 // Makes sure that the potentially new renderer associated with |frame| is 1) |
144 // initialized for the test, 2) kept-up-to-date wrt test flags and 3) | 144 // initialized for the test, 2) kept up to date wrt test flags and 3) |
145 // monitored for crashes. | 145 // monitored for crashes. |
146 void HandleNewRenderFrameHost(RenderFrameHost* frame); | 146 void HandleNewRenderFrameHost(RenderFrameHost* frame); |
147 | 147 |
148 void SetTempPath(const base::FilePath& temp_path); | 148 void SetTempPath(const base::FilePath& temp_path); |
149 void RendererUnresponsive(); | 149 void RendererUnresponsive(); |
150 void OverrideWebkitPrefs(WebPreferences* prefs); | 150 void OverrideWebkitPrefs(WebPreferences* prefs); |
151 void OpenURL(const GURL& url); | 151 void OpenURL(const GURL& url); |
152 bool IsMainWindow(WebContents* web_contents) const; | 152 bool IsMainWindow(WebContents* web_contents) const; |
153 std::unique_ptr<BluetoothChooser> RunBluetoothChooser( | 153 std::unique_ptr<BluetoothChooser> RunBluetoothChooser( |
154 RenderFrameHost* frame, | 154 RenderFrameHost* frame, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // waiting on the UI thread while layout tests are being ran. | 285 // waiting on the UI thread while layout tests are being ran. |
286 ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_; | 286 ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_; |
287 #endif | 287 #endif |
288 | 288 |
289 DISALLOW_COPY_AND_ASSIGN(BlinkTestController); | 289 DISALLOW_COPY_AND_ASSIGN(BlinkTestController); |
290 }; | 290 }; |
291 | 291 |
292 } // namespace content | 292 } // namespace content |
293 | 293 |
294 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ | 294 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ |
OLD | NEW |