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_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 class WebLayer; | 27 class WebLayer; |
28 class WebURLResponse; | 28 class WebURLResponse; |
29 class WebView; | 29 class WebView; |
30 struct WebRect; | 30 struct WebRect; |
31 struct WebSize; | 31 struct WebSize; |
32 struct WebURLError; | 32 struct WebURLError; |
33 } | 33 } |
34 | 34 |
35 namespace cc { | 35 namespace cc { |
36 class TextureLayer; | 36 class TextureLayer; |
| 37 class TextureLayerClient; |
37 class SharedBitmapManager; | 38 class SharedBitmapManager; |
38 } | 39 } |
39 | 40 |
40 namespace content { | 41 namespace content { |
41 | 42 |
42 class DeviceLightData; | 43 class DeviceLightData; |
43 class GamepadController; | 44 class GamepadController; |
44 class WebTask; | 45 class WebTask; |
45 class WebTestProxyBase; | 46 class WebTestProxyBase; |
46 struct TestPreferences; | 47 struct TestPreferences; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // Sends a message to the LayoutTestPermissionManager in order for it to | 215 // Sends a message to the LayoutTestPermissionManager in order for it to |
215 // update its database. | 216 // update its database. |
216 virtual void SetPermission(const std::string& permission_name, | 217 virtual void SetPermission(const std::string& permission_name, |
217 const std::string& permission_value, | 218 const std::string& permission_value, |
218 const GURL& origin, | 219 const GURL& origin, |
219 const GURL& embedding_origin) = 0; | 220 const GURL& embedding_origin) = 0; |
220 | 221 |
221 // Clear all the permissions set via SetPermission(). | 222 // Clear all the permissions set via SetPermission(). |
222 virtual void ResetPermissions() = 0; | 223 virtual void ResetPermissions() = 0; |
223 | 224 |
| 225 // Creates cc::TextureLayer for TestPlugin. |
| 226 virtual scoped_refptr<cc::TextureLayer> CreateTextureLayerForMailbox( |
| 227 cc::TextureLayerClient* client) = 0; |
| 228 |
224 // Instantiates WebLayerImpl for TestPlugin. | 229 // Instantiates WebLayerImpl for TestPlugin. |
225 virtual blink::WebLayer* InstantiateWebLayer( | 230 virtual blink::WebLayer* InstantiateWebLayer( |
226 scoped_refptr<cc::TextureLayer> layer) = 0; | 231 scoped_refptr<cc::TextureLayer> layer) = 0; |
227 | 232 |
228 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 233 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
229 }; | 234 }; |
230 | 235 |
231 } // namespace content | 236 } // namespace content |
232 | 237 |
233 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 238 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |