| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
| 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 const ResourceLoaderBridge::RequestInfo& request_info) = 0; | 152 const ResourceLoaderBridge::RequestInfo& request_info) = 0; |
| 153 // Creates a WebSocketStreamHandleBridge. | 153 // Creates a WebSocketStreamHandleBridge. |
| 154 virtual WebSocketStreamHandleBridge* CreateWebSocketBridge( | 154 virtual WebSocketStreamHandleBridge* CreateWebSocketBridge( |
| 155 WebKit::WebSocketStreamHandle* handle, | 155 WebKit::WebSocketStreamHandle* handle, |
| 156 WebSocketStreamHandleDelegate* delegate) = 0; | 156 WebSocketStreamHandleDelegate* delegate) = 0; |
| 157 | 157 |
| 158 void SuspendSharedTimer(); | 158 void SuspendSharedTimer(); |
| 159 void ResumeSharedTimer(); | 159 void ResumeSharedTimer(); |
| 160 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 160 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
| 161 | 161 |
| 162 virtual void didStartWorkerRunLoop( | |
| 163 const WebKit::WebWorkerRunLoop& runLoop) OVERRIDE; | |
| 164 virtual void didStopWorkerRunLoop( | |
| 165 const WebKit::WebWorkerRunLoop& runLoop) OVERRIDE; | |
| 166 | |
| 167 #if defined(OS_ANDROID) | 162 #if defined(OS_ANDROID) |
| 168 virtual webkit_media::WebAudioMediaCodecRunner | 163 virtual webkit_media::WebAudioMediaCodecRunner |
| 169 GetWebAudioMediaCodecRunner(); | 164 GetWebAudioMediaCodecRunner(); |
| 170 #endif | 165 #endif |
| 171 private: | 166 private: |
| 172 void DoTimeout() { | 167 void DoTimeout() { |
| 173 if (shared_timer_func_ && !shared_timer_suspended_) | 168 if (shared_timer_func_ && !shared_timer_suspended_) |
| 174 shared_timer_func_(); | 169 shared_timer_func_(); |
| 175 } | 170 } |
| 176 static void DestroyCurrentThread(void*); | 171 static void DestroyCurrentThread(void*); |
| 177 | 172 |
| 178 base::MessageLoop* main_loop_; | 173 base::MessageLoop* main_loop_; |
| 179 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; | 174 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; |
| 180 void (*shared_timer_func_)(); | 175 void (*shared_timer_func_)(); |
| 181 double shared_timer_fire_time_; | 176 double shared_timer_fire_time_; |
| 182 bool shared_timer_fire_time_was_set_while_suspended_; | 177 bool shared_timer_fire_time_was_set_while_suspended_; |
| 183 int shared_timer_suspended_; // counter | 178 int shared_timer_suspended_; // counter |
| 184 WebThemeEngineImpl native_theme_engine_; | 179 WebThemeEngineImpl native_theme_engine_; |
| 185 WebFallbackThemeEngineImpl fallback_theme_engine_; | 180 WebFallbackThemeEngineImpl fallback_theme_engine_; |
| 186 base::ThreadLocalStorage::Slot current_thread_slot_; | 181 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 187 }; | 182 }; |
| 188 | 183 |
| 189 } // namespace webkit_glue | 184 } // namespace webkit_glue |
| 190 | 185 |
| 191 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 186 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
| OLD | NEW |