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

Side by Side Diff: content/renderer/render_thread.h

Issue 7157001: Implements AudioMessageFilter as member in RenderThread (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Refactored major parts of the failing unit test Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/shared_memory.h" 14 #include "base/shared_memory.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/timer.h" 16 #include "base/timer.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "content/common/child_thread.h" 18 #include "content/common/child_thread.h"
19 #include "content/common/css_colors.h" 19 #include "content/common/css_colors.h"
20 #include "content/common/gpu/gpu_process_launch_causes.h" 20 #include "content/common/gpu/gpu_process_launch_causes.h"
21 #include "ipc/ipc_channel_proxy.h" 21 #include "ipc/ipc_channel_proxy.h"
22 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
23 23
24 class AppCacheDispatcher; 24 class AppCacheDispatcher;
25 class AudioMessageFilter;
25 class DBMessageFilter; 26 class DBMessageFilter;
26 class FilePath; 27 class FilePath;
27 class GpuChannelHost; 28 class GpuChannelHost;
28 class IndexedDBDispatcher; 29 class IndexedDBDispatcher;
29 class RendererHistogram; 30 class RendererHistogram;
30 class RendererHistogramSnapshots; 31 class RendererHistogramSnapshots;
31 class RenderProcessObserver; 32 class RenderProcessObserver;
32 class RendererNetPredictor; 33 class RendererNetPredictor;
33 class RendererWebKitClientImpl; 34 class RendererWebKitClientImpl;
34 class SkBitmap; 35 class SkBitmap;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void DoNotNotifyWebKitOfModalLoop(); 159 void DoNotNotifyWebKitOfModalLoop();
159 160
160 AppCacheDispatcher* appcache_dispatcher() const { 161 AppCacheDispatcher* appcache_dispatcher() const {
161 return appcache_dispatcher_.get(); 162 return appcache_dispatcher_.get();
162 } 163 }
163 164
164 IndexedDBDispatcher* indexed_db_dispatcher() const { 165 IndexedDBDispatcher* indexed_db_dispatcher() const {
165 return indexed_db_dispatcher_.get(); 166 return indexed_db_dispatcher_.get();
166 } 167 }
167 168
169 AudioMessageFilter* audio_message_filter() {
170 return audio_message_filter_.get();
171 }
172
168 VideoCaptureImplManager* video_capture_impl_manager() const { 173 VideoCaptureImplManager* video_capture_impl_manager() const {
169 return vc_manager_.get(); 174 return vc_manager_.get();
170 } 175 }
171 176
172 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } 177 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; }
173 178
174 double idle_notification_delay_in_s() const { 179 double idle_notification_delay_in_s() const {
175 return idle_notification_delay_in_s_; 180 return idle_notification_delay_in_s_;
176 } 181 }
177 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { 182 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 249
245 // These objects live solely on the render thread. 250 // These objects live solely on the render thread.
246 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_; 251 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > task_factory_;
247 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 252 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
248 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_; 253 scoped_ptr<IndexedDBDispatcher> indexed_db_dispatcher_;
249 scoped_ptr<RendererWebKitClientImpl> webkit_client_; 254 scoped_ptr<RendererWebKitClientImpl> webkit_client_;
250 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; 255 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_;
251 256
252 // Used on the renderer and IPC threads. 257 // Used on the renderer and IPC threads.
253 scoped_refptr<DBMessageFilter> db_message_filter_; 258 scoped_refptr<DBMessageFilter> db_message_filter_;
259 scoped_refptr<AudioMessageFilter> audio_message_filter_;
254 260
255 // Used on multiple threads. 261 // Used on multiple threads.
256 scoped_refptr<VideoCaptureImplManager> vc_manager_; 262 scoped_refptr<VideoCaptureImplManager> vc_manager_;
257 263
258 // Used on multiple script execution context threads. 264 // Used on multiple script execution context threads.
259 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 265 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
260 266
261 // If true, then a GetPlugins call is allowed to rescan the disk. 267 // If true, then a GetPlugins call is allowed to rescan the disk.
262 bool plugin_refresh_allowed_; 268 bool plugin_refresh_allowed_;
263 269
(...skipping 20 matching lines...) Expand all
284 290
285 // Map of registered v8 extensions. The key is the extension name. 291 // Map of registered v8 extensions. The key is the extension name.
286 std::set<std::string> v8_extensions_; 292 std::set<std::string> v8_extensions_;
287 293
288 ObserverList<RenderProcessObserver> observers_; 294 ObserverList<RenderProcessObserver> observers_;
289 295
290 DISALLOW_COPY_AND_ASSIGN(RenderThread); 296 DISALLOW_COPY_AND_ASSIGN(RenderThread);
291 }; 297 };
292 298
293 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ 299 #endif // CONTENT_RENDERER_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698