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

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

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UAF in BackgroundHTMLParser Created 5 years, 2 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/containers/scoped_ptr_hash_map.h" 9 #include "base/containers/scoped_ptr_hash_map.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 int domEnumFromCodeString(const blink::WebString& codeString) override; 188 int domEnumFromCodeString(const blink::WebString& codeString) override;
189 blink::WebString domKeyStringFromEnum(int dom_key) override; 189 blink::WebString domKeyStringFromEnum(int dom_key) override;
190 int domKeyEnumFromString(const blink::WebString& key_string) override; 190 int domKeyEnumFromString(const blink::WebString& key_string) override;
191 191
192 private: 192 private:
193 void InternalInit(); 193 void InternalInit();
194 void UpdateWebThreadTLS(blink::WebThread* thread); 194 void UpdateWebThreadTLS(blink::WebThread* thread);
195 195
196 bool IsMainThread() const; 196 bool IsMainThread() const;
197 197
198 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread();
199
200 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 198 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
201 WebThemeEngineImpl native_theme_engine_; 199 WebThemeEngineImpl native_theme_engine_;
202 WebFallbackThemeEngineImpl fallback_theme_engine_; 200 WebFallbackThemeEngineImpl fallback_theme_engine_;
203 base::ThreadLocalStorage::Slot current_thread_slot_; 201 base::ThreadLocalStorage::Slot current_thread_slot_;
204 webcrypto::WebCryptoImpl web_crypto_; 202 webcrypto::WebCryptoImpl web_crypto_;
205 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; 203 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_;
206 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, 204 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*,
207 scoped_ptr<WebMemoryDumpProviderAdapter>> 205 scoped_ptr<WebMemoryDumpProviderAdapter>>
208 memory_dump_providers_; 206 memory_dump_providers_;
209 207
210 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 208 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
211 scoped_refptr<NotificationDispatcher> notification_dispatcher_; 209 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
212 scoped_refptr<PushDispatcher> push_dispatcher_; 210 scoped_refptr<PushDispatcher> push_dispatcher_;
213 scoped_ptr<PermissionDispatcher> permission_client_; 211 scoped_ptr<PermissionDispatcher> permission_client_;
214 scoped_ptr<BackgroundSyncProvider> sync_provider_; 212 scoped_ptr<BackgroundSyncProvider> sync_provider_;
215 }; 213 };
216 214
217 } // namespace content 215 } // namespace content
218 216
219 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 217 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698