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_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 5 #ifndef CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
6 #define CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 6 #define CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "content/child/blink_platform_impl.h" | 10 #include "content/child/blink_platform_impl.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const blink::WebURLResponse& response, | 75 const blink::WebURLResponse& response, |
76 const blink::WebString& filePath); | 76 const blink::WebString& filePath); |
77 virtual void registerMockedErrorURL(const blink::WebURL& url, | 77 virtual void registerMockedErrorURL(const blink::WebURL& url, |
78 const blink::WebURLResponse& response, | 78 const blink::WebURLResponse& response, |
79 const blink::WebURLError& error); | 79 const blink::WebURLError& error); |
80 virtual void unregisterMockedURL(const blink::WebURL& url); | 80 virtual void unregisterMockedURL(const blink::WebURL& url); |
81 virtual void unregisterAllMockedURLs(); | 81 virtual void unregisterAllMockedURLs(); |
82 virtual void serveAsynchronousMockedRequests(); | 82 virtual void serveAsynchronousMockedRequests(); |
83 virtual blink::WebString webKitRootDir(); | 83 virtual blink::WebString webKitRootDir(); |
84 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting(); | 84 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting(); |
85 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting( | |
86 TestViewType type); | |
87 virtual blink::WebData readFromFile(const blink::WebString& path); | 85 virtual blink::WebData readFromFile(const blink::WebString& path); |
88 | 86 |
89 private: | 87 private: |
90 SimpleWebMimeRegistryImpl mime_registry_; | 88 SimpleWebMimeRegistryImpl mime_registry_; |
91 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; | 89 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; |
92 WebFileUtilitiesImpl file_utilities_; | 90 WebFileUtilitiesImpl file_utilities_; |
93 base::ScopedTempDir file_system_root_; | 91 base::ScopedTempDir file_system_root_; |
94 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; | 92 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; |
95 webkit::WebCompositorSupportImpl compositor_support_; | 93 webkit::WebCompositorSupportImpl compositor_support_; |
96 | 94 |
97 #if defined(OS_WIN) || defined(OS_MACOSX) | 95 #if defined(OS_WIN) || defined(OS_MACOSX) |
98 blink::WebThemeEngine* active_theme_engine_; | 96 blink::WebThemeEngine* active_theme_engine_; |
99 #endif | 97 #endif |
100 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 98 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
101 }; | 99 }; |
102 | 100 |
103 } // namespace content | 101 } // namespace content |
104 | 102 |
105 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 103 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
OLD | NEW |