| 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 COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/threading/thread_local_storage.h" | 9 #include "base/threading/thread_local_storage.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual blink::WebThread* currentThread(); | 68 virtual blink::WebThread* currentThread(); |
| 69 virtual void yieldCurrentThread(); | 69 virtual void yieldCurrentThread(); |
| 70 virtual blink::WebWaitableEvent* createWaitableEvent( | 70 virtual blink::WebWaitableEvent* createWaitableEvent( |
| 71 blink::WebWaitableEvent::ResetPolicy policy, | 71 blink::WebWaitableEvent::ResetPolicy policy, |
| 72 blink::WebWaitableEvent::InitialState state); | 72 blink::WebWaitableEvent::InitialState state); |
| 73 virtual blink::WebWaitableEvent* waitMultipleEvents( | 73 virtual blink::WebWaitableEvent* waitMultipleEvents( |
| 74 const blink::WebVector<blink::WebWaitableEvent*>& events); | 74 const blink::WebVector<blink::WebWaitableEvent*>& events); |
| 75 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); | 75 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); |
| 76 virtual const unsigned char* getTraceCategoryEnabledFlag( | 76 virtual const unsigned char* getTraceCategoryEnabledFlag( |
| 77 const char* category_name); | 77 const char* category_name); |
| 78 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 79 const blink::WebGraphicsContext3D::Attributes& attributes, |
| 80 blink::WebGraphicsContext3D* shareContext); |
| 81 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 82 const blink::WebGraphicsContext3D::Attributes& attributes, |
| 83 blink::WebGraphicsContext3D* shareContext, |
| 84 blink::WebGLInfo* glInfo); |
| 85 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 86 const blink::WebGraphicsContext3D::Attributes& attributes); |
| 87 virtual blink::WebGraphicsContext3DProvider* |
| 88 createSharedOffscreenGraphicsContext3DProvider(); |
| 78 virtual blink::WebData loadResource(const char* name); | 89 virtual blink::WebData loadResource(const char* name); |
| 79 virtual blink::WebGestureCurve* createFlingAnimationCurve( | 90 virtual blink::WebGestureCurve* createFlingAnimationCurve( |
| 80 blink::WebGestureDevice device_source, | 91 blink::WebGestureDevice device_source, |
| 81 const blink::WebFloatPoint& velocity, | 92 const blink::WebFloatPoint& velocity, |
| 82 const blink::WebSize& cumulative_scroll); | 93 const blink::WebSize& cumulative_scroll); |
| 83 virtual blink::WebCrypto* crypto(); | 94 virtual blink::WebCrypto* crypto(); |
| 84 virtual blink::WebNotificationManager* notificationManager(); | 95 virtual blink::WebNotificationManager* notificationManager(); |
| 85 | 96 |
| 86 private: | 97 private: |
| 87 void UpdateWebThreadTLS(blink::WebThread* thread); | 98 void UpdateWebThreadTLS(blink::WebThread* thread); |
| 88 | 99 |
| 89 static void DestroyCurrentThread(void*); | 100 static void DestroyCurrentThread(void*); |
| 90 | 101 |
| 102 mojo::ApplicationImpl* app_; |
| 91 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 103 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 92 scoped_ptr<scheduler::WebThreadImplForRendererScheduler> main_thread_; | 104 scoped_ptr<scheduler::WebThreadImplForRendererScheduler> main_thread_; |
| 93 base::ThreadLocalStorage::Slot current_thread_slot_; | 105 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 94 cc_blink::WebCompositorSupportImpl compositor_support_; | 106 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 95 WebThemeEngineImpl theme_engine_; | 107 WebThemeEngineImpl theme_engine_; |
| 96 WebMimeRegistryImpl mime_registry_; | 108 WebMimeRegistryImpl mime_registry_; |
| 97 webcrypto::WebCryptoImpl web_crypto_; | 109 webcrypto::WebCryptoImpl web_crypto_; |
| 98 WebNotificationManagerImpl web_notification_manager_; | 110 WebNotificationManagerImpl web_notification_manager_; |
| 99 blink::WebScrollbarBehavior scrollbar_behavior_; | 111 blink::WebScrollbarBehavior scrollbar_behavior_; |
| 100 mojo::WebSocketFactoryPtr web_socket_factory_; | 112 mojo::WebSocketFactoryPtr web_socket_factory_; |
| 101 mojo::URLLoaderFactoryPtr url_loader_factory_; | 113 mojo::URLLoaderFactoryPtr url_loader_factory_; |
| 102 MockWebBlobRegistryImpl blob_registry_; | 114 MockWebBlobRegistryImpl blob_registry_; |
| 103 scoped_ptr<WebCookieJarImpl> cookie_jar_; | 115 scoped_ptr<WebCookieJarImpl> cookie_jar_; |
| 104 scoped_ptr<WebClipboardImpl> clipboard_; | 116 scoped_ptr<WebClipboardImpl> clipboard_; |
| 105 | 117 |
| 106 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); | 118 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); |
| 107 }; | 119 }; |
| 108 | 120 |
| 109 } // namespace html_viewer | 121 } // namespace html_viewer |
| 110 | 122 |
| 111 #endif // COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 123 #endif // COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |