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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE; | 84 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE; |
85 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; | 85 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; |
86 virtual void GetPlugins(bool refresh, | 86 virtual void GetPlugins(bool refresh, |
87 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; | 87 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; |
88 virtual WebKit::WebPeerConnectionHandler* createPeerConnectionHandler( | 88 virtual WebKit::WebPeerConnectionHandler* createPeerConnectionHandler( |
89 WebKit::WebPeerConnectionHandlerClient* client) OVERRIDE; | 89 WebKit::WebPeerConnectionHandlerClient* client) OVERRIDE; |
90 virtual WebKit::WebPeerConnection00Handler* createPeerConnection00Handler( | 90 virtual WebKit::WebPeerConnection00Handler* createPeerConnection00Handler( |
91 WebKit::WebPeerConnection00HandlerClient* client) OVERRIDE; | 91 WebKit::WebPeerConnection00HandlerClient* client) OVERRIDE; |
92 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( | 92 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( |
93 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; | 93 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; |
| 94 virtual WebKit::WebBatteryMonitor* batteryMonitor() OVERRIDE; |
94 | 95 |
95 // Disables the WebSandboxSupport implementation for testing. | 96 // Disables the WebSandboxSupport implementation for testing. |
96 // Tests that do not set up a full sandbox environment should call | 97 // Tests that do not set up a full sandbox environment should call |
97 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 98 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
98 // of this class, to ensure that we don't attempt to use sandbox-related | 99 // of this class, to ensure that we don't attempt to use sandbox-related |
99 // file descriptors or other resources. | 100 // file descriptors or other resources. |
100 // | 101 // |
101 // Returns the previous |enable| value. | 102 // Returns the previous |enable| value. |
102 static bool SetSandboxEnabledForTesting(bool enable); | 103 static bool SetSandboxEnabledForTesting(bool enable); |
103 | 104 |
(...skipping 28 matching lines...) Expand all Loading... |
132 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 133 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
133 | 134 |
134 scoped_ptr<WebFileSystemImpl> web_file_system_; | 135 scoped_ptr<WebFileSystemImpl> web_file_system_; |
135 | 136 |
136 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 137 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
137 | 138 |
138 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 139 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
139 }; | 140 }; |
140 | 141 |
141 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 142 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |