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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // update its database. | 243 // update its database. |
244 virtual void SetPermission(const std::string& permission_name, | 244 virtual void SetPermission(const std::string& permission_name, |
245 const std::string& permission_value, | 245 const std::string& permission_value, |
246 const GURL& origin, | 246 const GURL& origin, |
247 const GURL& embedding_origin) = 0; | 247 const GURL& embedding_origin) = 0; |
248 | 248 |
249 // Clear all the permissions set via SetPermission(). | 249 // Clear all the permissions set via SetPermission(). |
250 virtual void ResetPermissions() = 0; | 250 virtual void ResetPermissions() = 0; |
251 | 251 |
252 // Add content MediaStream classes to the Blink MediaStream ones. | 252 // Add content MediaStream classes to the Blink MediaStream ones. |
253 virtual bool AddMediaStreamSourceAndTrack(blink::WebMediaStream* stream) = 0; | 253 virtual bool AddMediaStreamVideoSourceAndTrack( |
| 254 blink::WebMediaStream* stream) = 0; |
| 255 virtual bool AddMediaStreamAudioSourceAndTrack( |
| 256 blink::WebMediaStream* stream) = 0; |
254 | 257 |
255 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 258 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
256 | 259 |
257 // Causes the beforeinstallprompt event to be sent to the renderer with a | 260 // Causes the beforeinstallprompt event to be sent to the renderer with a |
258 // request id of |request_id|. |event_platforms| are the platforms to be sent | 261 // request id of |request_id|. |event_platforms| are the platforms to be sent |
259 // with the event. Once the event listener completes, |callback| will be | 262 // with the event. Once the event listener completes, |callback| will be |
260 // called with a boolean argument. This argument will be true if the event is | 263 // called with a boolean argument. This argument will be true if the event is |
261 // canceled, and false otherwise. | 264 // canceled, and false otherwise. |
262 virtual void DispatchBeforeInstallPromptEvent( | 265 virtual void DispatchBeforeInstallPromptEvent( |
263 int request_id, | 266 int request_id, |
(...skipping 11 matching lines...) Expand all Loading... |
275 virtual blink::WebPlugin* CreatePluginPlaceholder( | 278 virtual blink::WebPlugin* CreatePluginPlaceholder( |
276 blink::WebLocalFrame* frame, | 279 blink::WebLocalFrame* frame, |
277 const blink::WebPluginParams& params) = 0; | 280 const blink::WebPluginParams& params) = 0; |
278 | 281 |
279 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; | 282 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; |
280 }; | 283 }; |
281 | 284 |
282 } // namespace test_runner | 285 } // namespace test_runner |
283 | 286 |
284 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 287 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |