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

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

Issue 12335128: Switch from using individual methods for hyphenation to using the WebHyphantor interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 9 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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/webkitplatformsupport_impl.h" 12 #include "content/common/webkitplatformsupport_impl.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi tory.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi tory.h"
16 16
17 namespace webkit_glue { 17 namespace webkit_glue {
18 class WebClipboardImpl; 18 class WebClipboardImpl;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 class GamepadSharedMemoryReader; 22 class GamepadSharedMemoryReader;
23 class Hyphenator;
24 class RendererClipboardClient; 23 class RendererClipboardClient;
25 class WebFileSystemImpl; 24 class WebFileSystemImpl;
26 class WebSharedWorkerRepositoryImpl; 25 class WebSharedWorkerRepositoryImpl;
27 26
28 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl 27 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
29 : public WebKitPlatformSupportImpl { 28 : public WebKitPlatformSupportImpl {
30 public: 29 public:
31 RendererWebKitPlatformSupportImpl(); 30 RendererWebKitPlatformSupportImpl();
32 virtual ~RendererWebKitPlatformSupportImpl(); 31 virtual ~RendererWebKitPlatformSupportImpl();
33 32
34 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { 33 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) {
35 plugin_refresh_allowed_ = plugin_refresh_allowed; 34 plugin_refresh_allowed_ = plugin_refresh_allowed;
36 } 35 }
37 // Platform methods: 36 // Platform methods:
38 virtual WebKit::WebClipboard* clipboard(); 37 virtual WebKit::WebClipboard* clipboard();
39 virtual WebKit::WebMimeRegistry* mimeRegistry(); 38 virtual WebKit::WebMimeRegistry* mimeRegistry();
40 virtual WebKit::WebFileUtilities* fileUtilities(); 39 virtual WebKit::WebFileUtilities* fileUtilities();
41 virtual WebKit::WebSandboxSupport* sandboxSupport(); 40 virtual WebKit::WebSandboxSupport* sandboxSupport();
42 virtual WebKit::WebCookieJar* cookieJar(); 41 virtual WebKit::WebCookieJar* cookieJar();
42 virtual WebKit::WebHyphenator* hyphenator();
43 virtual bool sandboxEnabled(); 43 virtual bool sandboxEnabled();
44 virtual unsigned long long visitedLinkHash( 44 virtual unsigned long long visitedLinkHash(
45 const char* canonicalURL, size_t length); 45 const char* canonicalURL, size_t length);
46 virtual bool isLinkVisited(unsigned long long linkHash); 46 virtual bool isLinkVisited(unsigned long long linkHash);
47 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); 47 virtual WebKit::WebMessagePortChannel* createMessagePortChannel();
48 virtual void prefetchHostName(const WebKit::WebString&); 48 virtual void prefetchHostName(const WebKit::WebString&);
49 virtual void cacheMetadata( 49 virtual void cacheMetadata(
50 const WebKit::WebURL&, double, const char*, size_t); 50 const WebKit::WebURL&, double, const char*, size_t);
51 virtual WebKit::WebString defaultLocale(); 51 virtual WebKit::WebString defaultLocale();
52 virtual void suddenTerminationChanged(bool enabled); 52 virtual void suddenTerminationChanged(bool enabled);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 class FileUtilities; 129 class FileUtilities;
130 scoped_ptr<FileUtilities> file_utilities_; 130 scoped_ptr<FileUtilities> file_utilities_;
131 131
132 class MimeRegistry; 132 class MimeRegistry;
133 scoped_ptr<MimeRegistry> mime_registry_; 133 scoped_ptr<MimeRegistry> mime_registry_;
134 134
135 class SandboxSupport; 135 class SandboxSupport;
136 scoped_ptr<SandboxSupport> sandbox_support_; 136 scoped_ptr<SandboxSupport> sandbox_support_;
137 137
138 class Hyphenator;
139 scoped_ptr<Hyphenator> hyphenator_;
140
138 // This counter keeps track of the number of times sudden termination is 141 // This counter keeps track of the number of times sudden termination is
139 // enabled or disabled. It starts at 0 (enabled) and for every disable 142 // enabled or disabled. It starts at 0 (enabled) and for every disable
140 // increments by 1, for every enable decrements by 1. When it reaches 0, 143 // increments by 1, for every enable decrements by 1. When it reaches 0,
141 // we tell the browser to enable fast termination. 144 // we tell the browser to enable fast termination.
142 int sudden_termination_disables_; 145 int sudden_termination_disables_;
143 146
144 // If true, then a GetPlugins call is allowed to rescan the disk. 147 // If true, then a GetPlugins call is allowed to rescan the disk.
145 bool plugin_refresh_allowed_; 148 bool plugin_refresh_allowed_;
146 149
147 // Implementation of the WebSharedWorkerRepository APIs (provides an interface 150 // Implementation of the WebSharedWorkerRepository APIs (provides an interface
148 // to WorkerService on the browser thread. 151 // to WorkerService on the browser thread.
149 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; 152 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_;
150 153
151 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 154 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_;
152 155
153 scoped_ptr<WebFileSystemImpl> web_file_system_; 156 scoped_ptr<WebFileSystemImpl> web_file_system_;
154 157
155 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 158 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
156 159
157 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 160 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
158
159 scoped_ptr<content::Hyphenator> hyphenator_;
160 }; 161 };
161 162
162 } // namespace content 163 } // namespace content
163 164
164 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 165 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698