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

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: Added TODO() comment in failing unit test Created 9 years, 6 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_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 WebKit::WebView* webview() const; 202 WebKit::WebView* webview() const;
203 203
204 // Called by a GraphicsContext associated with this view when swapbuffers 204 // Called by a GraphicsContext associated with this view when swapbuffers
205 // completes or is aborted. 205 // completes or is aborted.
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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1072
1077 // The geolocation dispatcher attached to this view, lazily initialized. 1073 // The geolocation dispatcher attached to this view, lazily initialized.
1078 GeolocationDispatcher* geolocation_dispatcher_; 1074 GeolocationDispatcher* geolocation_dispatcher_;
1079 1075
1080 // The speech dispatcher attached to this view, lazily initialized. 1076 // The speech dispatcher attached to this view, lazily initialized.
1081 SpeechInputDispatcher* speech_input_dispatcher_; 1077 SpeechInputDispatcher* speech_input_dispatcher_;
1082 1078
1083 // Device orientation dispatcher attached to this view; lazily initialized. 1079 // Device orientation dispatcher attached to this view; lazily initialized.
1084 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1080 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1085 1081
1086 scoped_refptr<AudioMessageFilter> audio_message_filter_;
1087
1088 // Handles accessibility requests into the renderer side, as well as 1082 // Handles accessibility requests into the renderer side, as well as
1089 // maintains the cache and other features of the accessibility tree. 1083 // maintains the cache and other features of the accessibility tree.
1090 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; 1084 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_;
1091 1085
1092 // Collect renderer accessibility notifications until they are ready to be 1086 // Collect renderer accessibility notifications until they are ready to be
1093 // sent to the browser. 1087 // sent to the browser.
1094 std::vector<RendererAccessibilityNotification> 1088 std::vector<RendererAccessibilityNotification>
1095 pending_accessibility_notifications_; 1089 pending_accessibility_notifications_;
1096 1090
1097 // Set if we are waiting for a accessibility notification ack. 1091 // Set if we are waiting for a accessibility notification ack.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 // bunch of stuff, you should probably create a helper class and put your 1154 // bunch of stuff, you should probably create a helper class and put your
1161 // data and methods on that to avoid bloating RenderView more. You can use 1155 // data and methods on that to avoid bloating RenderView more. You can use
1162 // the Observer interface to filter IPC messages and receive frame change 1156 // the Observer interface to filter IPC messages and receive frame change
1163 // notifications. 1157 // notifications.
1164 // --------------------------------------------------------------------------- 1158 // ---------------------------------------------------------------------------
1165 1159
1166 DISALLOW_COPY_AND_ASSIGN(RenderView); 1160 DISALLOW_COPY_AND_ASSIGN(RenderView);
1167 }; 1161 };
1168 1162
1169 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1163 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698