| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHILD_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_CHILD_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 "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/containers/scoped_ptr_hash_map.h" | 12 #include "base/containers/scoped_ptr_hash_map.h" |
| 13 #include "base/threading/thread_local_storage.h" | 13 #include "base/threading/thread_local_storage.h" |
| 14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "components/webcrypto/webcrypto_impl.h" | 17 #include "components/webcrypto/webcrypto_impl.h" |
| 18 #include "content/child/experiments/api_key_validator.h" | 18 #include "content/child/origin_trials/trial_token_validator.h" |
| 19 #include "content/child/webfallbackthemeengine_impl.h" | 19 #include "content/child/webfallbackthemeengine_impl.h" |
| 20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 #include "third_party/WebKit/public/platform/Platform.h" | 21 #include "third_party/WebKit/public/platform/Platform.h" |
| 22 #include "third_party/WebKit/public/platform/WebGestureDevice.h" | 22 #include "third_party/WebKit/public/platform/WebGestureDevice.h" |
| 23 #include "third_party/WebKit/public/platform/WebURLError.h" | 23 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 24 #include "ui/base/layout.h" | 24 #include "ui/base/layout.h" |
| 25 | 25 |
| 26 #if defined(USE_DEFAULT_RENDER_THEME) | 26 #if defined(USE_DEFAULT_RENDER_THEME) |
| 27 #include "content/child/webthemeengine_impl_default.h" | 27 #include "content/child/webthemeengine_impl_default.h" |
| 28 #elif defined(OS_WIN) | 28 #elif defined(OS_WIN) |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void didStartWorkerThread() override; | 152 void didStartWorkerThread() override; |
| 153 void willStopWorkerThread() override; | 153 void willStopWorkerThread() override; |
| 154 blink::WebCrypto* crypto() override; | 154 blink::WebCrypto* crypto() override; |
| 155 blink::WebGeofencingProvider* geofencingProvider() override; | 155 blink::WebGeofencingProvider* geofencingProvider() override; |
| 156 blink::WebNotificationManager* notificationManager() override; | 156 blink::WebNotificationManager* notificationManager() override; |
| 157 blink::WebPushProvider* pushProvider() override; | 157 blink::WebPushProvider* pushProvider() override; |
| 158 blink::WebServicePortProvider* createServicePortProvider( | 158 blink::WebServicePortProvider* createServicePortProvider( |
| 159 blink::WebServicePortProviderClient*) override; | 159 blink::WebServicePortProviderClient*) override; |
| 160 blink::WebPermissionClient* permissionClient() override; | 160 blink::WebPermissionClient* permissionClient() override; |
| 161 blink::WebSyncProvider* backgroundSyncProvider() override; | 161 blink::WebSyncProvider* backgroundSyncProvider() override; |
| 162 blink::WebApiKeyValidator* apiKeyValidator() override; | 162 blink::WebTrialTokenValidator* trialTokenValidator() override; |
| 163 | 163 |
| 164 blink::WebString domCodeStringFromEnum(int dom_code) override; | 164 blink::WebString domCodeStringFromEnum(int dom_code) override; |
| 165 int domEnumFromCodeString(const blink::WebString& codeString) override; | 165 int domEnumFromCodeString(const blink::WebString& codeString) override; |
| 166 blink::WebString domKeyStringFromEnum(int dom_key) override; | 166 blink::WebString domKeyStringFromEnum(int dom_key) override; |
| 167 int domKeyEnumFromString(const blink::WebString& key_string) override; | 167 int domKeyEnumFromString(const blink::WebString& key_string) override; |
| 168 | 168 |
| 169 // This class does *not* own the compositor thread. It is the responsibility | 169 // This class does *not* own the compositor thread. It is the responsibility |
| 170 // of the caller to ensure that the compositor thread is cleared before it is | 170 // of the caller to ensure that the compositor thread is cleared before it is |
| 171 // destructed. | 171 // destructed. |
| 172 void SetCompositorThread(scheduler::WebThreadBase* compositor_thread); | 172 void SetCompositorThread(scheduler::WebThreadBase* compositor_thread); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 190 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, | 190 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, |
| 191 scoped_ptr<TraceLogObserverAdapter>> | 191 scoped_ptr<TraceLogObserverAdapter>> |
| 192 trace_log_observers_; | 192 trace_log_observers_; |
| 193 | 193 |
| 194 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 194 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 195 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 195 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 196 scoped_refptr<PushDispatcher> push_dispatcher_; | 196 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 197 scoped_ptr<PermissionDispatcher> permission_client_; | 197 scoped_ptr<PermissionDispatcher> permission_client_; |
| 198 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 198 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
| 199 | 199 |
| 200 ApiKeyValidator api_key_validator_; | 200 TrialTokenValidator trial_token_validator_; |
| 201 | 201 |
| 202 scheduler::WebThreadBase* compositor_thread_; | 202 scheduler::WebThreadBase* compositor_thread_; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace content | 205 } // namespace content |
| 206 | 206 |
| 207 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 207 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |