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

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

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 #include "content/child/webthemeengine_impl_mac.h" 30 #include "content/child/webthemeengine_impl_mac.h"
31 #elif defined(OS_ANDROID) 31 #elif defined(OS_ANDROID)
32 #include "content/child/webthemeengine_impl_android.h" 32 #include "content/child/webthemeengine_impl_android.h"
33 #endif 33 #endif
34 34
35 namespace base { 35 namespace base {
36 class MessageLoop; 36 class MessageLoop;
37 class WaitableEvent; 37 class WaitableEvent;
38 } 38 }
39 39
40 namespace blink {
40 namespace scheduler { 41 namespace scheduler {
41 class WebThreadBase; 42 class WebThreadBase;
42 } 43 }
44 }
43 45
44 namespace content { 46 namespace content {
45 class BackgroundSyncProvider; 47 class BackgroundSyncProvider;
46 class FlingCurveConfiguration; 48 class FlingCurveConfiguration;
47 class NotificationDispatcher; 49 class NotificationDispatcher;
48 class PushDispatcher; 50 class PushDispatcher;
49 class ThreadSafeSender; 51 class ThreadSafeSender;
50 class TraceLogObserverAdapter; 52 class TraceLogObserverAdapter;
51 class WebCryptoImpl; 53 class WebCryptoImpl;
52 54
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 blink::WebSyncProvider* backgroundSyncProvider() override; 131 blink::WebSyncProvider* backgroundSyncProvider() override;
130 132
131 blink::WebString domCodeStringFromEnum(int dom_code) override; 133 blink::WebString domCodeStringFromEnum(int dom_code) override;
132 int domEnumFromCodeString(const blink::WebString& codeString) override; 134 int domEnumFromCodeString(const blink::WebString& codeString) override;
133 blink::WebString domKeyStringFromEnum(int dom_key) override; 135 blink::WebString domKeyStringFromEnum(int dom_key) override;
134 int domKeyEnumFromString(const blink::WebString& key_string) override; 136 int domKeyEnumFromString(const blink::WebString& key_string) override;
135 137
136 // 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
137 // of the caller to ensure that the compositor thread is cleared before it is 139 // of the caller to ensure that the compositor thread is cleared before it is
138 // destructed. 140 // destructed.
139 void SetCompositorThread(scheduler::WebThreadBase* compositor_thread); 141 void SetCompositorThread(blink::scheduler::WebThreadBase* compositor_thread);
140 142
141 private: 143 private:
142 void InternalInit(); 144 void InternalInit();
143 void WaitUntilWebThreadTLSUpdate(scheduler::WebThreadBase* thread); 145 void WaitUntilWebThreadTLSUpdate(blink::scheduler::WebThreadBase* thread);
144 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); 146 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event);
145 147
146 bool IsMainThread() const; 148 bool IsMainThread() const;
147 149
148 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 150 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
149 WebThemeEngineImpl native_theme_engine_; 151 WebThemeEngineImpl native_theme_engine_;
150 WebFallbackThemeEngineImpl fallback_theme_engine_; 152 WebFallbackThemeEngineImpl fallback_theme_engine_;
151 base::ThreadLocalStorage::Slot current_thread_slot_; 153 base::ThreadLocalStorage::Slot current_thread_slot_;
152 webcrypto::WebCryptoImpl web_crypto_; 154 webcrypto::WebCryptoImpl web_crypto_;
153 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, 155 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*,
154 std::unique_ptr<TraceLogObserverAdapter>> 156 std::unique_ptr<TraceLogObserverAdapter>>
155 trace_log_observers_; 157 trace_log_observers_;
156 158
157 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 159 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
158 scoped_refptr<NotificationDispatcher> notification_dispatcher_; 160 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
159 scoped_refptr<PushDispatcher> push_dispatcher_; 161 scoped_refptr<PushDispatcher> push_dispatcher_;
160 std::unique_ptr<BackgroundSyncProvider> main_thread_sync_provider_; 162 std::unique_ptr<BackgroundSyncProvider> main_thread_sync_provider_;
161 163
162 scheduler::WebThreadBase* compositor_thread_; 164 blink::scheduler::WebThreadBase* compositor_thread_;
163 }; 165 };
164 166
165 } // namespace content 167 } // namespace content
166 168
167 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 169 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698