| 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 12 matching lines...) Expand all Loading... |
| 23 namespace webkit_glue { | 23 namespace webkit_glue { |
| 24 class WebClipboardImpl; | 24 class WebClipboardImpl; |
| 25 } | 25 } |
| 26 | 26 |
| 27 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 27 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| 28 : public content::WebKitPlatformSupportImpl { | 28 : public content::WebKitPlatformSupportImpl { |
| 29 public: | 29 public: |
| 30 RendererWebKitPlatformSupportImpl(); | 30 RendererWebKitPlatformSupportImpl(); |
| 31 virtual ~RendererWebKitPlatformSupportImpl(); | 31 virtual ~RendererWebKitPlatformSupportImpl(); |
| 32 | 32 |
| 33 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
| 34 plugin_refresh_allowed_ = plugin_refresh_allowed; |
| 35 } |
| 33 // WebKitPlatformSupport methods: | 36 // WebKitPlatformSupport methods: |
| 34 virtual WebKit::WebClipboard* clipboard() OVERRIDE; | 37 virtual WebKit::WebClipboard* clipboard() OVERRIDE; |
| 35 virtual WebKit::WebMimeRegistry* mimeRegistry() OVERRIDE; | 38 virtual WebKit::WebMimeRegistry* mimeRegistry() OVERRIDE; |
| 36 virtual WebKit::WebFileUtilities* fileUtilities() OVERRIDE; | 39 virtual WebKit::WebFileUtilities* fileUtilities() OVERRIDE; |
| 37 virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE; | 40 virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE; |
| 38 virtual WebKit::WebCookieJar* cookieJar() OVERRIDE; | 41 virtual WebKit::WebCookieJar* cookieJar() OVERRIDE; |
| 39 virtual bool sandboxEnabled() OVERRIDE; | 42 virtual bool sandboxEnabled() OVERRIDE; |
| 40 virtual unsigned long long visitedLinkHash( | 43 virtual unsigned long long visitedLinkHash( |
| 41 const char* canonicalURL, size_t length) OVERRIDE; | 44 const char* canonicalURL, size_t length) OVERRIDE; |
| 42 virtual bool isLinkVisited(unsigned long long linkHash) OVERRIDE; | 45 virtual bool isLinkVisited(unsigned long long linkHash) OVERRIDE; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 119 |
| 117 class SandboxSupport; | 120 class SandboxSupport; |
| 118 scoped_ptr<SandboxSupport> sandbox_support_; | 121 scoped_ptr<SandboxSupport> sandbox_support_; |
| 119 | 122 |
| 120 // This counter keeps track of the number of times sudden termination is | 123 // This counter keeps track of the number of times sudden termination is |
| 121 // enabled or disabled. It starts at 0 (enabled) and for every disable | 124 // enabled or disabled. It starts at 0 (enabled) and for every disable |
| 122 // increments by 1, for every enable decrements by 1. When it reaches 0, | 125 // increments by 1, for every enable decrements by 1. When it reaches 0, |
| 123 // we tell the browser to enable fast termination. | 126 // we tell the browser to enable fast termination. |
| 124 int sudden_termination_disables_; | 127 int sudden_termination_disables_; |
| 125 | 128 |
| 129 // If true, then a GetPlugins call is allowed to rescan the disk. |
| 130 bool plugin_refresh_allowed_; |
| 131 |
| 126 // Implementation of the WebSharedWorkerRepository APIs (provides an interface | 132 // Implementation of the WebSharedWorkerRepository APIs (provides an interface |
| 127 // to WorkerService on the browser thread. | 133 // to WorkerService on the browser thread. |
| 128 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 134 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
| 129 | 135 |
| 130 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 136 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
| 131 | 137 |
| 132 scoped_ptr<WebFileSystemImpl> web_file_system_; | 138 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 133 | 139 |
| 134 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 140 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 135 | 141 |
| 136 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 142 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 137 }; | 143 }; |
| 138 | 144 |
| 139 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 145 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |