OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
6 #define COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/test_runner/test_preferences.h" | 10 #include "components/test_runner/test_preferences.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void FetchManifest( | 101 void FetchManifest( |
102 blink::WebView* view, | 102 blink::WebView* view, |
103 const GURL& url, | 103 const GURL& url, |
104 const base::Callback<void(const blink::WebURLResponse& response, | 104 const base::Callback<void(const blink::WebURLResponse& response, |
105 const std::string& data)>& callback) override; | 105 const std::string& data)>& callback) override; |
106 void SetPermission(const std::string& permission_name, | 106 void SetPermission(const std::string& permission_name, |
107 const std::string& permission_value, | 107 const std::string& permission_value, |
108 const GURL& origin, | 108 const GURL& origin, |
109 const GURL& embedding_origin) override; | 109 const GURL& embedding_origin) override; |
110 void ResetPermissions() override; | 110 void ResetPermissions() override; |
| 111 bool AddMediaStreamSourceAndTrack(blink::WebMediaStream* stream) override; |
111 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 112 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
112 void DispatchBeforeInstallPromptEvent( | 113 void DispatchBeforeInstallPromptEvent( |
113 int request_id, | 114 int request_id, |
114 const std::vector<std::string>& event_platforms, | 115 const std::vector<std::string>& event_platforms, |
115 const base::Callback<void(bool)>& callback) override; | 116 const base::Callback<void(bool)>& callback) override; |
116 void ResolveBeforeInstallPromptPromise(int request_id, | 117 void ResolveBeforeInstallPromptPromise(int request_id, |
117 const std::string& platform) override; | 118 const std::string& platform) override; |
118 blink::WebPlugin* CreatePluginPlaceholder( | 119 blink::WebPlugin* CreatePluginPlaceholder( |
119 blink::WebLocalFrame* frame, | 120 blink::WebLocalFrame* frame, |
120 const blink::WebPluginParams& params) override; | 121 const blink::WebPluginParams& params) override; |
121 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* base) override; | 122 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* base) override; |
122 | 123 |
123 test_runner::TestPreferences prefs_; | 124 test_runner::TestPreferences prefs_; |
124 test_runner::WebTestInterfaces* test_interfaces_; | 125 test_runner::WebTestInterfaces* test_interfaces_; |
125 test_runner::WebTestProxyBase* proxy_; | 126 test_runner::WebTestProxyBase* proxy_; |
126 base::Closure completion_callback_; | 127 base::Closure completion_callback_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); | 129 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace html_viewer | 132 } // namespace html_viewer |
132 | 133 |
133 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 134 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
OLD | NEW |