OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 WebKit::WebRTCPeerConnectionHandlerClient* client); | 91 WebKit::WebRTCPeerConnectionHandlerClient* client); |
92 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( | 92 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( |
93 WebKit::WebMediaStreamCenterClient* client); | 93 WebKit::WebMediaStreamCenterClient* client); |
94 virtual bool canHyphenate(const WebKit::WebString& locale); | 94 virtual bool canHyphenate(const WebKit::WebString& locale); |
95 virtual size_t computeLastHyphenLocation(const char16* characters, | 95 virtual size_t computeLastHyphenLocation(const char16* characters, |
96 size_t length, | 96 size_t length, |
97 size_t before_index, | 97 size_t before_index, |
98 const WebKit::WebString& locale); | 98 const WebKit::WebString& locale); |
99 virtual bool processMemorySizesInBytes( | 99 virtual bool processMemorySizesInBytes( |
100 size_t* private_bytes, size_t* shared_bytes); | 100 size_t* private_bytes, size_t* shared_bytes); |
| 101 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 102 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 103 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); |
101 | 104 |
102 // Disables the WebSandboxSupport implementation for testing. | 105 // Disables the WebSandboxSupport implementation for testing. |
103 // Tests that do not set up a full sandbox environment should call | 106 // Tests that do not set up a full sandbox environment should call |
104 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 107 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
105 // of this class, to ensure that we don't attempt to use sandbox-related | 108 // of this class, to ensure that we don't attempt to use sandbox-related |
106 // file descriptors or other resources. | 109 // file descriptors or other resources. |
107 // | 110 // |
108 // Returns the previous |enable| value. | 111 // Returns the previous |enable| value. |
109 static bool SetSandboxEnabledForTesting(bool enable); | 112 static bool SetSandboxEnabledForTesting(bool enable); |
110 | 113 |
111 // Set WebGamepads to return when sampleGamepads() is invoked. | 114 // Set WebGamepads to return when sampleGamepads() is invoked. |
112 static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads); | 115 static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads); |
113 | 116 |
114 protected: | |
115 virtual GpuChannelHostFactory* GetGpuChannelHostFactory() OVERRIDE; | |
116 | |
117 private: | 117 private: |
118 bool CheckPreparsedJsCachingEnabled() const; | 118 bool CheckPreparsedJsCachingEnabled() const; |
119 | 119 |
120 scoped_ptr<RendererClipboardClient> clipboard_client_; | 120 scoped_ptr<RendererClipboardClient> clipboard_client_; |
121 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; | 121 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; |
122 | 122 |
123 class FileUtilities; | 123 class FileUtilities; |
124 scoped_ptr<FileUtilities> file_utilities_; | 124 scoped_ptr<FileUtilities> file_utilities_; |
125 | 125 |
126 class MimeRegistry; | 126 class MimeRegistry; |
(...skipping 22 matching lines...) Expand all Loading... |
149 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 149 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
150 | 150 |
151 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 151 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
152 | 152 |
153 scoped_ptr<content::Hyphenator> hyphenator_; | 153 scoped_ptr<content::Hyphenator> hyphenator_; |
154 }; | 154 }; |
155 | 155 |
156 } // namespace content | 156 } // namespace content |
157 | 157 |
158 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 158 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |