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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 94 |
| 95 // Disables the WebSandboxSupport implementation for testing. |
| 96 // Tests that do not set up a full sandbox environment should call |
| 97 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 98 // of this class, to ensure that we don't attempt to use sandbox-related |
| 99 // file descriptors or other resources. |
| 100 // |
| 101 // Returns the previous |enable| value. |
| 102 static bool SetSandboxEnabledForTesting(bool enable); |
| 103 |
95 protected: | 104 protected: |
96 virtual GpuChannelHostFactory* GetGpuChannelHostFactory() OVERRIDE; | 105 virtual GpuChannelHostFactory* GetGpuChannelHostFactory() OVERRIDE; |
97 | 106 |
98 private: | 107 private: |
99 bool CheckPreparsedJsCachingEnabled() const; | 108 bool CheckPreparsedJsCachingEnabled() const; |
100 | 109 |
101 scoped_ptr<RendererClipboardClient> clipboard_client_; | 110 scoped_ptr<RendererClipboardClient> clipboard_client_; |
102 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; | 111 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; |
103 | 112 |
104 class FileUtilities; | 113 class FileUtilities; |
(...skipping 18 matching lines...) Expand all Loading... |
123 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 132 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
124 | 133 |
125 scoped_ptr<WebFileSystemImpl> web_file_system_; | 134 scoped_ptr<WebFileSystemImpl> web_file_system_; |
126 | 135 |
127 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 136 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
128 | 137 |
129 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 138 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
130 }; | 139 }; |
131 | 140 |
132 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 141 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |