Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 10823086: Make plugins work in a RenderViewTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated according to jam@ Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
36 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; }
jam 2012/07/31 20:05:07 nit: not needed, so no point adding it
Fady Samuel 2012/07/31 20:20:59 Done.
33 // WebKitPlatformSupport methods: 37 // WebKitPlatformSupport methods:
34 virtual WebKit::WebClipboard* clipboard() OVERRIDE; 38 virtual WebKit::WebClipboard* clipboard() OVERRIDE;
35 virtual WebKit::WebMimeRegistry* mimeRegistry() OVERRIDE; 39 virtual WebKit::WebMimeRegistry* mimeRegistry() OVERRIDE;
36 virtual WebKit::WebFileUtilities* fileUtilities() OVERRIDE; 40 virtual WebKit::WebFileUtilities* fileUtilities() OVERRIDE;
37 virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE; 41 virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE;
38 virtual WebKit::WebCookieJar* cookieJar() OVERRIDE; 42 virtual WebKit::WebCookieJar* cookieJar() OVERRIDE;
39 virtual bool sandboxEnabled() OVERRIDE; 43 virtual bool sandboxEnabled() OVERRIDE;
40 virtual unsigned long long visitedLinkHash( 44 virtual unsigned long long visitedLinkHash(
41 const char* canonicalURL, size_t length) OVERRIDE; 45 const char* canonicalURL, size_t length) OVERRIDE;
42 virtual bool isLinkVisited(unsigned long long linkHash) OVERRIDE; 46 virtual bool isLinkVisited(unsigned long long linkHash) OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 120
117 class SandboxSupport; 121 class SandboxSupport;
118 scoped_ptr<SandboxSupport> sandbox_support_; 122 scoped_ptr<SandboxSupport> sandbox_support_;
119 123
120 // This counter keeps track of the number of times sudden termination is 124 // 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 125 // 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, 126 // increments by 1, for every enable decrements by 1. When it reaches 0,
123 // we tell the browser to enable fast termination. 127 // we tell the browser to enable fast termination.
124 int sudden_termination_disables_; 128 int sudden_termination_disables_;
125 129
130 // If true, then a GetPlugins call is allowed to rescan the disk.
131 bool plugin_refresh_allowed_;
132
126 // Implementation of the WebSharedWorkerRepository APIs (provides an interface 133 // Implementation of the WebSharedWorkerRepository APIs (provides an interface
127 // to WorkerService on the browser thread. 134 // to WorkerService on the browser thread.
128 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; 135 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_;
129 136
130 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 137 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_;
131 138
132 scoped_ptr<WebFileSystemImpl> web_file_system_; 139 scoped_ptr<WebFileSystemImpl> web_file_system_;
133 140
134 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 141 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
135 142
136 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 143 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
137 }; 144 };
138 145
139 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 146 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698