| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void FetchManifest( | 102 void FetchManifest( |
| 103 blink::WebView* view, | 103 blink::WebView* view, |
| 104 const GURL& url, | 104 const GURL& url, |
| 105 const base::Callback<void(const blink::WebURLResponse& response, | 105 const base::Callback<void(const blink::WebURLResponse& response, |
| 106 const std::string& data)>& callback) override; | 106 const std::string& data)>& callback) override; |
| 107 void SetPermission(const std::string& permission_name, | 107 void SetPermission(const std::string& permission_name, |
| 108 const std::string& permission_value, | 108 const std::string& permission_value, |
| 109 const GURL& origin, | 109 const GURL& origin, |
| 110 const GURL& embedding_origin) override; | 110 const GURL& embedding_origin) override; |
| 111 void ResetPermissions() override; | 111 void ResetPermissions() override; |
| 112 bool AddMediaStreamSourceAndTrack(blink::WebMediaStream* stream) override; | 112 bool AddMediaStreamVideoSourceAndTrack( |
| 113 blink::WebMediaStream* stream) override; |
| 114 bool AddMediaStreamAudioSourceAndTrack( |
| 115 blink::WebMediaStream* stream) override; |
| 113 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 116 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
| 114 void DispatchBeforeInstallPromptEvent( | 117 void DispatchBeforeInstallPromptEvent( |
| 115 int request_id, | 118 int request_id, |
| 116 const std::vector<std::string>& event_platforms, | 119 const std::vector<std::string>& event_platforms, |
| 117 const base::Callback<void(bool)>& callback) override; | 120 const base::Callback<void(bool)>& callback) override; |
| 118 void ResolveBeforeInstallPromptPromise(int request_id, | 121 void ResolveBeforeInstallPromptPromise(int request_id, |
| 119 const std::string& platform) override; | 122 const std::string& platform) override; |
| 120 blink::WebPlugin* CreatePluginPlaceholder( | 123 blink::WebPlugin* CreatePluginPlaceholder( |
| 121 blink::WebLocalFrame* frame, | 124 blink::WebLocalFrame* frame, |
| 122 const blink::WebPluginParams& params) override; | 125 const blink::WebPluginParams& params) override; |
| 123 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* base) override; | 126 void OnWebTestProxyBaseDestroy(test_runner::WebTestProxyBase* base) override; |
| 124 | 127 |
| 125 // Must not be constructed until after blink has been initialized. | 128 // Must not be constructed until after blink has been initialized. |
| 126 scoped_ptr<test_runner::TestPreferences> prefs_; | 129 scoped_ptr<test_runner::TestPreferences> prefs_; |
| 127 test_runner::WebTestInterfaces* test_interfaces_; | 130 test_runner::WebTestInterfaces* test_interfaces_; |
| 128 test_runner::WebTestProxyBase* proxy_; | 131 test_runner::WebTestProxyBase* proxy_; |
| 129 base::Closure completion_callback_; | 132 base::Closure completion_callback_; |
| 130 | 133 |
| 131 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); | 134 DISALLOW_COPY_AND_ASSIGN(WebTestDelegateImpl); |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace html_viewer | 137 } // namespace html_viewer |
| 135 | 138 |
| 136 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ | 139 #endif // COMPONENTS_HTML_VIEWER_WEB_TEST_DELEGATE_IMPL_H_ |
| OLD | NEW |