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