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/origin_trials/trial_token_validator.h" | |
19 #include "content/child/webfallbackthemeengine_impl.h" | 18 #include "content/child/webfallbackthemeengine_impl.h" |
20 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
21 #include "third_party/WebKit/public/platform/Platform.h" | 20 #include "third_party/WebKit/public/platform/Platform.h" |
22 #include "third_party/WebKit/public/platform/WebGestureDevice.h" | 21 #include "third_party/WebKit/public/platform/WebGestureDevice.h" |
23 #include "third_party/WebKit/public/platform/WebURLError.h" | 22 #include "third_party/WebKit/public/platform/WebURLError.h" |
24 #include "ui/base/layout.h" | 23 #include "ui/base/layout.h" |
25 | 24 |
26 #if defined(USE_DEFAULT_RENDER_THEME) | 25 #if defined(USE_DEFAULT_RENDER_THEME) |
27 #include "content/child/webthemeengine_impl_default.h" | 26 #include "content/child/webthemeengine_impl_default.h" |
28 #elif defined(OS_WIN) | 27 #elif defined(OS_WIN) |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 void didStartWorkerThread() override; | 140 void didStartWorkerThread() override; |
142 void willStopWorkerThread() override; | 141 void willStopWorkerThread() override; |
143 blink::WebCrypto* crypto() override; | 142 blink::WebCrypto* crypto() override; |
144 blink::WebGeofencingProvider* geofencingProvider() override; | 143 blink::WebGeofencingProvider* geofencingProvider() override; |
145 blink::WebNotificationManager* notificationManager() override; | 144 blink::WebNotificationManager* notificationManager() override; |
146 blink::WebPushProvider* pushProvider() override; | 145 blink::WebPushProvider* pushProvider() override; |
147 blink::WebServicePortProvider* createServicePortProvider( | 146 blink::WebServicePortProvider* createServicePortProvider( |
148 blink::WebServicePortProviderClient*) override; | 147 blink::WebServicePortProviderClient*) override; |
149 blink::WebPermissionClient* permissionClient() override; | 148 blink::WebPermissionClient* permissionClient() override; |
150 blink::WebSyncProvider* backgroundSyncProvider() override; | 149 blink::WebSyncProvider* backgroundSyncProvider() override; |
151 blink::WebTrialTokenValidator* trialTokenValidator() override; | |
152 | 150 |
153 blink::WebString domCodeStringFromEnum(int dom_code) override; | 151 blink::WebString domCodeStringFromEnum(int dom_code) override; |
154 int domEnumFromCodeString(const blink::WebString& codeString) override; | 152 int domEnumFromCodeString(const blink::WebString& codeString) override; |
155 blink::WebString domKeyStringFromEnum(int dom_key) override; | 153 blink::WebString domKeyStringFromEnum(int dom_key) override; |
156 int domKeyEnumFromString(const blink::WebString& key_string) override; | 154 int domKeyEnumFromString(const blink::WebString& key_string) override; |
157 | 155 |
158 // This class does *not* own the compositor thread. It is the responsibility | 156 // This class does *not* own the compositor thread. It is the responsibility |
159 // of the caller to ensure that the compositor thread is cleared before it is | 157 // of the caller to ensure that the compositor thread is cleared before it is |
160 // destructed. | 158 // destructed. |
161 void SetCompositorThread(scheduler::WebThreadBase* compositor_thread); | 159 void SetCompositorThread(scheduler::WebThreadBase* compositor_thread); |
(...skipping 17 matching lines...) Expand all Loading... |
179 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, | 177 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, |
180 scoped_ptr<TraceLogObserverAdapter>> | 178 scoped_ptr<TraceLogObserverAdapter>> |
181 trace_log_observers_; | 179 trace_log_observers_; |
182 | 180 |
183 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 181 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
184 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 182 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
185 scoped_refptr<PushDispatcher> push_dispatcher_; | 183 scoped_refptr<PushDispatcher> push_dispatcher_; |
186 scoped_ptr<PermissionDispatcher> permission_client_; | 184 scoped_ptr<PermissionDispatcher> permission_client_; |
187 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 185 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
188 | 186 |
189 TrialTokenValidator trial_token_validator_; | |
190 | |
191 scheduler::WebThreadBase* compositor_thread_; | 187 scheduler::WebThreadBase* compositor_thread_; |
192 }; | 188 }; |
193 | 189 |
194 } // namespace content | 190 } // namespace content |
195 | 191 |
196 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 192 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |