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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 struct WebPluginAction; | 130 struct WebPluginAction; |
131 struct WebPoint; | 131 struct WebPoint; |
132 struct WebWindowFeatures; | 132 struct WebWindowFeatures; |
133 | 133 |
134 #if defined(OS_ANDROID) | 134 #if defined(OS_ANDROID) |
135 class WebHitTestResult; | 135 class WebHitTestResult; |
136 #endif | 136 #endif |
137 } | 137 } |
138 | 138 |
139 namespace content { | 139 namespace content { |
| 140 class BrowserPluginManager; |
140 class DeviceOrientationDispatcher; | 141 class DeviceOrientationDispatcher; |
141 class DevToolsAgent; | 142 class DevToolsAgent; |
142 class DocumentState; | 143 class DocumentState; |
143 class DomAutomationController; | 144 class DomAutomationController; |
144 class ExternalPopupMenu; | 145 class ExternalPopupMenu; |
145 class GeolocationDispatcher; | 146 class GeolocationDispatcher; |
146 class InputTagSpeechDispatcher; | 147 class InputTagSpeechDispatcher; |
147 class JavaBridgeDispatcher; | 148 class JavaBridgeDispatcher; |
148 class LoadProgressTracker; | 149 class LoadProgressTracker; |
149 class MediaStreamDispatcher; | 150 class MediaStreamDispatcher; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 MouseLockDispatcher* mouse_lock_dispatcher() { | 258 MouseLockDispatcher* mouse_lock_dispatcher() { |
258 return mouse_lock_dispatcher_; | 259 return mouse_lock_dispatcher_; |
259 } | 260 } |
260 | 261 |
261 #if defined(OS_ANDROID) | 262 #if defined(OS_ANDROID) |
262 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { | 263 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { |
263 return media_player_manager_.get(); | 264 return media_player_manager_.get(); |
264 } | 265 } |
265 #endif | 266 #endif |
266 | 267 |
| 268 // Lazily initialize this view's BrowserPluginManager and return it. |
| 269 BrowserPluginManager* browser_plugin_manager(); |
| 270 |
267 // Functions to add and remove observers for this object. | 271 // Functions to add and remove observers for this object. |
268 void AddObserver(RenderViewObserver* observer); | 272 void AddObserver(RenderViewObserver* observer); |
269 void RemoveObserver(RenderViewObserver* observer); | 273 void RemoveObserver(RenderViewObserver* observer); |
270 | 274 |
271 // Adds the given file chooser request to the file_chooser_completion_ queue | 275 // Adds the given file chooser request to the file_chooser_completion_ queue |
272 // (see that var for more) and requests the chooser be displayed if there are | 276 // (see that var for more) and requests the chooser be displayed if there are |
273 // no other waiting items in the queue. | 277 // no other waiting items in the queue. |
274 // | 278 // |
275 // Returns true if the chooser was successfully scheduled. False means we | 279 // Returns true if the chooser was successfully scheduled. False means we |
276 // didn't schedule anything. | 280 // didn't schedule anything. |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 // The speech recognition dispatcher attached to this view, lazily | 1371 // The speech recognition dispatcher attached to this view, lazily |
1368 // initialized. | 1372 // initialized. |
1369 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; | 1373 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; |
1370 | 1374 |
1371 // Device orientation dispatcher attached to this view; lazily initialized. | 1375 // Device orientation dispatcher attached to this view; lazily initialized. |
1372 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1376 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1373 | 1377 |
1374 // MediaStream dispatcher attached to this view; lazily initialized. | 1378 // MediaStream dispatcher attached to this view; lazily initialized. |
1375 MediaStreamDispatcher* media_stream_dispatcher_; | 1379 MediaStreamDispatcher* media_stream_dispatcher_; |
1376 | 1380 |
| 1381 // BrowserPluginManager attached to this view; lazily initialized. |
| 1382 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; |
| 1383 |
1377 // MediaStreamImpl attached to this view; lazily initialized. | 1384 // MediaStreamImpl attached to this view; lazily initialized. |
1378 MediaStreamImpl* media_stream_impl_; | 1385 MediaStreamImpl* media_stream_impl_; |
1379 | 1386 |
1380 DevToolsAgent* devtools_agent_; | 1387 DevToolsAgent* devtools_agent_; |
1381 | 1388 |
1382 // The current accessibility mode. | 1389 // The current accessibility mode. |
1383 AccessibilityMode accessibility_mode_; | 1390 AccessibilityMode accessibility_mode_; |
1384 | 1391 |
1385 // Only valid if |accessibility_mode_| is anything other than | 1392 // Only valid if |accessibility_mode_| is anything other than |
1386 // AccessibilityModeOff. | 1393 // AccessibilityModeOff. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 // use the Observer interface to filter IPC messages and receive frame change | 1555 // use the Observer interface to filter IPC messages and receive frame change |
1549 // notifications. | 1556 // notifications. |
1550 // --------------------------------------------------------------------------- | 1557 // --------------------------------------------------------------------------- |
1551 | 1558 |
1552 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1559 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1553 }; | 1560 }; |
1554 | 1561 |
1555 } // namespace content | 1562 } // namespace content |
1556 | 1563 |
1557 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1564 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |