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

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

Issue 7157001: Implements AudioMessageFilter as member in RenderThread (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fixed nits in AudioRenderImpl 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
« no previous file with comments | « content/renderer/render_thread.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VIEW_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 // Called by a GraphicsContext associated with this view when swapbuffers 203 // Called by a GraphicsContext associated with this view when swapbuffers
204 // is posted, completes or is aborted. 204 // is posted, completes or is aborted.
205 void OnViewContextSwapBuffersPosted(); 205 void OnViewContextSwapBuffersPosted();
206 void OnViewContextSwapBuffersComplete(); 206 void OnViewContextSwapBuffersComplete();
207 void OnViewContextSwapBuffersAborted(); 207 void OnViewContextSwapBuffersAborted();
208 208
209 int page_id() const { return page_id_; } 209 int page_id() const { return page_id_; }
210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } 210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; }
211 211
212 AudioMessageFilter* audio_message_filter() {
213 return audio_message_filter_;
214 }
215
216 const WebPreferences& webkit_preferences() const { 212 const WebPreferences& webkit_preferences() const {
217 return webkit_preferences_; 213 return webkit_preferences_;
218 } 214 }
219 215
220 bool content_state_immediately() { return send_content_state_immediately_; } 216 bool content_state_immediately() { return send_content_state_immediately_; }
221 int enabled_bindings() const { return enabled_bindings_; } 217 int enabled_bindings() const { return enabled_bindings_; }
222 void set_enabled_bindings(int b) { enabled_bindings_ = b; } 218 void set_enabled_bindings(int b) { enabled_bindings_ = b; }
223 void set_send_content_state_immediately(bool value) { 219 void set_send_content_state_immediately(bool value) {
224 send_content_state_immediately_ = value; 220 send_content_state_immediately_ = value;
225 } 221 }
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 1068
1073 // The geolocation dispatcher attached to this view, lazily initialized. 1069 // The geolocation dispatcher attached to this view, lazily initialized.
1074 GeolocationDispatcher* geolocation_dispatcher_; 1070 GeolocationDispatcher* geolocation_dispatcher_;
1075 1071
1076 // The speech dispatcher attached to this view, lazily initialized. 1072 // The speech dispatcher attached to this view, lazily initialized.
1077 SpeechInputDispatcher* speech_input_dispatcher_; 1073 SpeechInputDispatcher* speech_input_dispatcher_;
1078 1074
1079 // Device orientation dispatcher attached to this view; lazily initialized. 1075 // Device orientation dispatcher attached to this view; lazily initialized.
1080 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1076 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1081 1077
1082 scoped_refptr<AudioMessageFilter> audio_message_filter_;
1083
1084 // Handles accessibility requests into the renderer side, as well as 1078 // Handles accessibility requests into the renderer side, as well as
1085 // maintains the cache and other features of the accessibility tree. 1079 // maintains the cache and other features of the accessibility tree.
1086 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; 1080 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_;
1087 1081
1088 // Collect renderer accessibility notifications until they are ready to be 1082 // Collect renderer accessibility notifications until they are ready to be
1089 // sent to the browser. 1083 // sent to the browser.
1090 std::vector<RendererAccessibilityNotification> 1084 std::vector<RendererAccessibilityNotification>
1091 pending_accessibility_notifications_; 1085 pending_accessibility_notifications_;
1092 1086
1093 // Set if we are waiting for a accessibility notification ack. 1087 // Set if we are waiting for a accessibility notification ack.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 // bunch of stuff, you should probably create a helper class and put your 1150 // bunch of stuff, you should probably create a helper class and put your
1157 // data and methods on that to avoid bloating RenderView more. You can use 1151 // data and methods on that to avoid bloating RenderView more. You can use
1158 // the Observer interface to filter IPC messages and receive frame change 1152 // the Observer interface to filter IPC messages and receive frame change
1159 // notifications. 1153 // notifications.
1160 // --------------------------------------------------------------------------- 1154 // ---------------------------------------------------------------------------
1161 1155
1162 DISALLOW_COPY_AND_ASSIGN(RenderView); 1156 DISALLOW_COPY_AND_ASSIGN(RenderView);
1163 }; 1157 };
1164 1158
1165 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1159 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698