| 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" | |
| 23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" | 22 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" |
| 24 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 23 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 25 | 24 |
| 26 namespace cc { | 25 namespace cc { |
| 27 class ContextProvider; | 26 class ContextProvider; |
| 28 } | 27 } |
| 29 | 28 |
| 30 namespace IPC { | 29 namespace IPC { |
| 31 class SyncMessageFilter; | 30 class SyncMessageFilter; |
| 32 } | 31 } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 blink::WebString databaseCreateOriginIdentifier( | 121 blink::WebString databaseCreateOriginIdentifier( |
| 123 const blink::WebSecurityOrigin& origin) override; | 122 const blink::WebSecurityOrigin& origin) override; |
| 124 | 123 |
| 125 blink::WebString signedPublicKeyAndChallengeString( | 124 blink::WebString signedPublicKeyAndChallengeString( |
| 126 unsigned key_size_index, | 125 unsigned key_size_index, |
| 127 const blink::WebString& challenge, | 126 const blink::WebString& challenge, |
| 128 const blink::WebURL& url, | 127 const blink::WebURL& url, |
| 129 const blink::WebURL& top_origin) override; | 128 const blink::WebURL& top_origin) override; |
| 130 void getPluginList(bool refresh, | 129 void getPluginList(bool refresh, |
| 131 blink::WebPluginListBuilder* builder) override; | 130 blink::WebPluginListBuilder* builder) override; |
| 132 blink::WebPublicSuffixList* publicSuffixList() override; | |
| 133 blink::WebScrollbarBehavior* scrollbarBehavior() override; | 131 blink::WebScrollbarBehavior* scrollbarBehavior() override; |
| 134 blink::WebIDBFactory* idbFactory() override; | 132 blink::WebIDBFactory* idbFactory() override; |
| 135 blink::WebServiceWorkerCacheStorage* cacheStorage( | 133 blink::WebServiceWorkerCacheStorage* cacheStorage( |
| 136 const blink::WebSecurityOrigin& security_origin) override; | 134 const blink::WebSecurityOrigin& security_origin) override; |
| 137 blink::WebFileSystem* fileSystem() override; | 135 blink::WebFileSystem* fileSystem() override; |
| 138 blink::WebString fileSystemCreateOriginIdentifier( | 136 blink::WebString fileSystemCreateOriginIdentifier( |
| 139 const blink::WebSecurityOrigin& origin) override; | 137 const blink::WebSecurityOrigin& origin) override; |
| 140 | 138 |
| 141 bool canAccelerate2dCanvas() override; | 139 bool canAccelerate2dCanvas() override; |
| 142 bool isThreadedCompositingEnabled() override; | 140 bool isThreadedCompositingEnabled() override; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // we tell the browser to enable fast termination. | 271 // we tell the browser to enable fast termination. |
| 274 int sudden_termination_disables_; | 272 int sudden_termination_disables_; |
| 275 | 273 |
| 276 // If true, then a GetPlugins call is allowed to rescan the disk. | 274 // If true, then a GetPlugins call is allowed to rescan the disk. |
| 277 bool plugin_refresh_allowed_; | 275 bool plugin_refresh_allowed_; |
| 278 | 276 |
| 279 std::unique_ptr<blink::WebIDBFactory> web_idb_factory_; | 277 std::unique_ptr<blink::WebIDBFactory> web_idb_factory_; |
| 280 | 278 |
| 281 std::unique_ptr<blink::WebBlobRegistry> blob_registry_; | 279 std::unique_ptr<blink::WebBlobRegistry> blob_registry_; |
| 282 | 280 |
| 283 WebPublicSuffixListImpl public_suffix_list_; | |
| 284 | |
| 285 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; | 281 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_; |
| 286 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_; | 282 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_; |
| 287 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 283 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 288 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 284 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 289 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 285 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 290 | 286 |
| 291 std::unique_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 287 std::unique_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 292 | 288 |
| 293 cc_blink::WebCompositorSupportImpl compositor_support_; | 289 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 294 | 290 |
| 295 std::unique_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 291 std::unique_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 296 | 292 |
| 297 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 293 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 298 | 294 |
| 299 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 295 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
| 300 TopLevelBlameContext top_level_blame_context_; | 296 TopLevelBlameContext top_level_blame_context_; |
| 301 | 297 |
| 302 WebTrialTokenValidatorImpl trial_token_validator_; | 298 WebTrialTokenValidatorImpl trial_token_validator_; |
| 303 | 299 |
| 304 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; | 300 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; |
| 305 | 301 |
| 306 std::unique_ptr<BlinkServiceRegistryImpl> blink_service_registry_; | 302 std::unique_ptr<BlinkServiceRegistryImpl> blink_service_registry_; |
| 307 | 303 |
| 308 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 304 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 309 }; | 305 }; |
| 310 | 306 |
| 311 } // namespace content | 307 } // namespace content |
| 312 | 308 |
| 313 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 309 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |