Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: content/child/blink_platform_impl.h

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: resolves the promise Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 26 matching lines...) Expand all
37 class WaitableEvent; 37 class WaitableEvent;
38 } 38 }
39 39
40 namespace scheduler { 40 namespace scheduler {
41 class WebThreadBase; 41 class WebThreadBase;
42 } 42 }
43 43
44 namespace content { 44 namespace content {
45 class BackgroundSyncProvider; 45 class BackgroundSyncProvider;
46 class FlingCurveConfiguration; 46 class FlingCurveConfiguration;
47 class NotificationDispatcher;
48 class PermissionDispatcher; 47 class PermissionDispatcher;
49 class PushDispatcher; 48 class PushDispatcher;
50 class ThreadSafeSender; 49 class ThreadSafeSender;
51 class TraceLogObserverAdapter; 50 class TraceLogObserverAdapter;
52 class WebCryptoImpl; 51 class WebCryptoImpl;
53 class WebGeofencingProviderImpl; 52 class WebGeofencingProviderImpl;
54 53
55 class CONTENT_EXPORT BlinkPlatformImpl 54 class CONTENT_EXPORT BlinkPlatformImpl
56 : NON_EXPORTED_BASE(public blink::Platform) { 55 : NON_EXPORTED_BASE(public blink::Platform) {
57 public: 56 public:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void suddenTerminationChanged(bool enabled) override {} 119 void suddenTerminationChanged(bool enabled) override {}
121 blink::WebThread* compositorThread() const override; 120 blink::WebThread* compositorThread() const override;
122 blink::WebGestureCurve* createFlingAnimationCurve( 121 blink::WebGestureCurve* createFlingAnimationCurve(
123 blink::WebGestureDevice device_source, 122 blink::WebGestureDevice device_source,
124 const blink::WebFloatPoint& velocity, 123 const blink::WebFloatPoint& velocity,
125 const blink::WebSize& cumulative_scroll) override; 124 const blink::WebSize& cumulative_scroll) override;
126 void didStartWorkerThread() override; 125 void didStartWorkerThread() override;
127 void willStopWorkerThread() override; 126 void willStopWorkerThread() override;
128 blink::WebCrypto* crypto() override; 127 blink::WebCrypto* crypto() override;
129 blink::WebGeofencingProvider* geofencingProvider() override; 128 blink::WebGeofencingProvider* geofencingProvider() override;
130 blink::WebNotificationManager* notificationManager() override;
131 blink::WebPushProvider* pushProvider() override; 129 blink::WebPushProvider* pushProvider() override;
132 blink::WebPermissionClient* permissionClient() override; 130 blink::WebPermissionClient* permissionClient() override;
133 blink::WebSyncProvider* backgroundSyncProvider() override; 131 blink::WebSyncProvider* backgroundSyncProvider() override;
134 132
135 blink::WebString domCodeStringFromEnum(int dom_code) override; 133 blink::WebString domCodeStringFromEnum(int dom_code) override;
136 int domEnumFromCodeString(const blink::WebString& codeString) override; 134 int domEnumFromCodeString(const blink::WebString& codeString) override;
137 blink::WebString domKeyStringFromEnum(int dom_key) override; 135 blink::WebString domKeyStringFromEnum(int dom_key) override;
138 int domKeyEnumFromString(const blink::WebString& key_string) override; 136 int domKeyEnumFromString(const blink::WebString& key_string) override;
139 137
140 // This class does *not* own the compositor thread. It is the responsibility 138 // This class does *not* own the compositor thread. It is the responsibility
(...skipping 12 matching lines...) Expand all
153 WebThemeEngineImpl native_theme_engine_; 151 WebThemeEngineImpl native_theme_engine_;
154 WebFallbackThemeEngineImpl fallback_theme_engine_; 152 WebFallbackThemeEngineImpl fallback_theme_engine_;
155 base::ThreadLocalStorage::Slot current_thread_slot_; 153 base::ThreadLocalStorage::Slot current_thread_slot_;
156 webcrypto::WebCryptoImpl web_crypto_; 154 webcrypto::WebCryptoImpl web_crypto_;
157 std::unique_ptr<WebGeofencingProviderImpl> geofencing_provider_; 155 std::unique_ptr<WebGeofencingProviderImpl> geofencing_provider_;
158 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, 156 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*,
159 std::unique_ptr<TraceLogObserverAdapter>> 157 std::unique_ptr<TraceLogObserverAdapter>>
160 trace_log_observers_; 158 trace_log_observers_;
161 159
162 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 160 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
163 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
164 scoped_refptr<PushDispatcher> push_dispatcher_; 161 scoped_refptr<PushDispatcher> push_dispatcher_;
165 std::unique_ptr<PermissionDispatcher> permission_client_; 162 std::unique_ptr<PermissionDispatcher> permission_client_;
166 std::unique_ptr<BackgroundSyncProvider> main_thread_sync_provider_; 163 std::unique_ptr<BackgroundSyncProvider> main_thread_sync_provider_;
167 164
168 scheduler::WebThreadBase* compositor_thread_; 165 scheduler::WebThreadBase* compositor_thread_;
169 }; 166 };
170 167
171 } // namespace content 168 } // namespace content
172 169
173 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 170 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698