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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 12457043: Android implementation of WebAudio audio file decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 (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/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 11 #include "base/platform_file.h"
11 #include "base/threading/thread_local_storage.h" 12 #include "base/threading/thread_local_storage.h"
12 #include "base/timer.h" 13 #include "base/timer.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" 14 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h"
14 #include "ui/base/layout.h" 15 #include "ui/base/layout.h"
15 #include "webkit/glue/resource_loader_bridge.h" 16 #include "webkit/glue/resource_loader_bridge.h"
16 #include "webkit/glue/webkit_glue_export.h" 17 #include "webkit/glue/webkit_glue_export.h"
17 18
18 #if defined(USE_DEFAULT_RENDER_THEME) 19 #if defined(USE_DEFAULT_RENDER_THEME)
19 #include "webkit/glue/webthemeengine_impl_default.h" 20 #include "webkit/glue/webthemeengine_impl_default.h"
20 #elif defined(OS_WIN) 21 #elif defined(OS_WIN)
21 #include "webkit/glue/webthemeengine_impl_win.h" 22 #include "webkit/glue/webthemeengine_impl_win.h"
22 #elif defined(OS_MACOSX) 23 #elif defined(OS_MACOSX)
23 #include "webkit/glue/webthemeengine_impl_mac.h" 24 #include "webkit/glue/webthemeengine_impl_mac.h"
24 #elif defined(OS_ANDROID) 25 #elif defined(OS_ANDROID)
25 #include "webkit/glue/webthemeengine_impl_android.h" 26 #include "webkit/glue/webthemeengine_impl_android.h"
27 #include "webkit/media/audio_decoder.h"
26 #endif 28 #endif
27 29
28 class MessageLoop; 30 class MessageLoop;
29 31
30 namespace webkit { 32 namespace webkit {
31 class WebCompositorSupportImpl; 33 class WebCompositorSupportImpl;
32 struct WebPluginInfo; 34 struct WebPluginInfo;
33 } 35 }
34 36
35 namespace WebKit { 37 namespace WebKit {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 165
164 virtual WebKit::WebGestureCurve* createFlingAnimationCurve( 166 virtual WebKit::WebGestureCurve* createFlingAnimationCurve(
165 int device_source, 167 int device_source,
166 const WebKit::WebFloatPoint& velocity, 168 const WebKit::WebFloatPoint& velocity,
167 const WebKit::WebSize& cumulative_scroll) OVERRIDE; 169 const WebKit::WebSize& cumulative_scroll) OVERRIDE;
168 170
169 webkit::WebCompositorSupportImpl* compositor_support_impl() const { 171 webkit::WebCompositorSupportImpl* compositor_support_impl() const {
170 return compositor_support_.get(); 172 return compositor_support_.get();
171 } 173 }
172 174
175 #if defined(OS_ANDROID)
176 virtual webkit_media::WebAudioMediaCodecRunner
177 GetWebAudioMediaCodecRunner() = 0;
178 #endif
173 private: 179 private:
174 void DoTimeout() { 180 void DoTimeout() {
175 if (shared_timer_func_ && !shared_timer_suspended_) 181 if (shared_timer_func_ && !shared_timer_suspended_)
176 shared_timer_func_(); 182 shared_timer_func_();
177 } 183 }
178 static void DestroyCurrentThread(void*); 184 static void DestroyCurrentThread(void*);
179 185
180 MessageLoop* main_loop_; 186 MessageLoop* main_loop_;
181 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; 187 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_;
182 void (*shared_timer_func_)(); 188 void (*shared_timer_func_)();
183 double shared_timer_fire_time_; 189 double shared_timer_fire_time_;
184 bool shared_timer_fire_time_was_set_while_suspended_; 190 bool shared_timer_fire_time_was_set_while_suspended_;
185 int shared_timer_suspended_; // counter 191 int shared_timer_suspended_; // counter
186 WebThemeEngineImpl theme_engine_; 192 WebThemeEngineImpl theme_engine_;
187 base::ThreadLocalStorage::Slot current_thread_slot_; 193 base::ThreadLocalStorage::Slot current_thread_slot_;
188 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_; 194 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_;
189 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; 195 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_;
190 }; 196 };
191 197
192 } // namespace webkit_glue 198 } // namespace webkit_glue
193 199
194 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 200 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698