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_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/id_map.h" | 14 #include "base/id_map.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "cc/blink/web_compositor_support_impl.h" | 17 #include "cc/blink/web_compositor_support_impl.h" |
18 #include "content/child/blink_platform_impl.h" | 18 #include "content/child/blink_platform_impl.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/common/url_loader_factory.mojom.h" | 20 #include "content/common/url_loader_factory.mojom.h" |
21 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h" | 21 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h" |
22 #include "content/renderer/top_level_blame_context.h" | 22 #include "content/renderer/top_level_blame_context.h" |
23 #include "content/renderer/webpublicsuffixlist_impl.h" | 23 #include "content/renderer/webpublicsuffixlist_impl.h" |
24 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" | 24 #include "device/vibration/vibration_manager.mojom.h" |
25 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 25 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 class ContextProvider; | 28 class ContextProvider; |
29 } | 29 } |
30 | 30 |
31 namespace IPC { | 31 namespace IPC { |
32 class SyncMessageFilter; | 32 class SyncMessageFilter; |
33 } | 33 } |
34 | 34 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 blink::WebString signedPublicKeyAndChallengeString( | 126 blink::WebString signedPublicKeyAndChallengeString( |
127 unsigned key_size_index, | 127 unsigned key_size_index, |
128 const blink::WebString& challenge, | 128 const blink::WebString& challenge, |
129 const blink::WebURL& url, | 129 const blink::WebURL& url, |
130 const blink::WebURL& top_origin) override; | 130 const blink::WebURL& top_origin) override; |
131 void getPluginList(bool refresh, | 131 void getPluginList(bool refresh, |
132 blink::WebPluginListBuilder* builder) override; | 132 blink::WebPluginListBuilder* builder) override; |
133 blink::WebPublicSuffixList* publicSuffixList() override; | 133 blink::WebPublicSuffixList* publicSuffixList() override; |
134 blink::WebScrollbarBehavior* scrollbarBehavior() override; | 134 blink::WebScrollbarBehavior* scrollbarBehavior() override; |
135 blink::WebIDBFactory* idbFactory() override; | |
136 blink::WebServiceWorkerCacheStorage* cacheStorage( | 135 blink::WebServiceWorkerCacheStorage* cacheStorage( |
137 const blink::WebSecurityOrigin& security_origin) override; | 136 const blink::WebSecurityOrigin& security_origin) override; |
138 blink::WebFileSystem* fileSystem() override; | 137 blink::WebFileSystem* fileSystem() override; |
139 blink::WebString fileSystemCreateOriginIdentifier( | 138 blink::WebString fileSystemCreateOriginIdentifier( |
140 const blink::WebSecurityOrigin& origin) override; | 139 const blink::WebSecurityOrigin& origin) override; |
141 | 140 |
142 bool canAccelerate2dCanvas() override; | 141 bool canAccelerate2dCanvas() override; |
143 bool isThreadedCompositingEnabled() override; | 142 bool isThreadedCompositingEnabled() override; |
144 bool isThreadedAnimationEnabled() override; | 143 bool isThreadedAnimationEnabled() override; |
145 double audioHardwareSampleRate() override; | 144 double audioHardwareSampleRate() override; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 269 |
271 // This counter keeps track of the number of times sudden termination is | 270 // This counter keeps track of the number of times sudden termination is |
272 // enabled or disabled. It starts at 0 (enabled) and for every disable | 271 // enabled or disabled. It starts at 0 (enabled) and for every disable |
273 // increments by 1, for every enable decrements by 1. When it reaches 0, | 272 // increments by 1, for every enable decrements by 1. When it reaches 0, |
274 // we tell the browser to enable fast termination. | 273 // we tell the browser to enable fast termination. |
275 int sudden_termination_disables_; | 274 int sudden_termination_disables_; |
276 | 275 |
277 // If true, then a GetPlugins call is allowed to rescan the disk. | 276 // If true, then a GetPlugins call is allowed to rescan the disk. |
278 bool plugin_refresh_allowed_; | 277 bool plugin_refresh_allowed_; |
279 | 278 |
280 std::unique_ptr<blink::WebIDBFactory> web_idb_factory_; | |
281 | |
282 std::unique_ptr<blink::WebBlobRegistry> blob_registry_; | 279 std::unique_ptr<blink::WebBlobRegistry> blob_registry_; |
283 | 280 |
284 WebPublicSuffixListImpl public_suffix_list_; | 281 WebPublicSuffixListImpl public_suffix_list_; |
285 | 282 |
286 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; | 283 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; |
287 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_; | 284 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_; |
288 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 285 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
289 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 286 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
290 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 287 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
291 | 288 |
(...skipping 15 matching lines...) Expand all Loading... |
307 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 304 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
308 | 305 |
309 mojom::URLLoaderFactoryPtr url_loader_factory_; | 306 mojom::URLLoaderFactoryPtr url_loader_factory_; |
310 | 307 |
311 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 308 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
312 }; | 309 }; |
313 | 310 |
314 } // namespace content | 311 } // namespace content |
315 | 312 |
316 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 313 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |