| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } // namespace ui | 87 } // namespace ui |
| 88 | 88 |
| 89 namespace webkit { | 89 namespace webkit { |
| 90 | 90 |
| 91 namespace ppapi { | 91 namespace ppapi { |
| 92 class PluginInstance; | 92 class PluginInstance; |
| 93 } // namespace ppapi | 93 } // namespace ppapi |
| 94 | 94 |
| 95 } // namespace webkit | 95 } // namespace webkit |
| 96 | 96 |
| 97 #if defined(OS_ANDROID) | |
| 98 namespace webkit_media { | |
| 99 class WebMediaPlayerManagerAndroid; | |
| 100 } | |
| 101 #endif | |
| 102 | |
| 103 namespace WebKit { | 97 namespace WebKit { |
| 104 class WebApplicationCacheHost; | 98 class WebApplicationCacheHost; |
| 105 class WebApplicationCacheHostClient; | 99 class WebApplicationCacheHostClient; |
| 106 class WebDOMMessageEvent; | 100 class WebDOMMessageEvent; |
| 107 class WebDataSource; | 101 class WebDataSource; |
| 108 class WebDateTimeChooserCompletion; | 102 class WebDateTimeChooserCompletion; |
| 109 class WebDragData; | 103 class WebDragData; |
| 110 class WebGeolocationClient; | 104 class WebGeolocationClient; |
| 111 class WebGestureEvent; | 105 class WebGestureEvent; |
| 112 class WebIconURL; | 106 class WebIconURL; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 class RenderWidgetFullscreenPepper; | 161 class RenderWidgetFullscreenPepper; |
| 168 class SpeechRecognitionDispatcher; | 162 class SpeechRecognitionDispatcher; |
| 169 class StatsCollectionController; | 163 class StatsCollectionController; |
| 170 class WebPluginDelegateProxy; | 164 class WebPluginDelegateProxy; |
| 171 struct CustomContextMenuContext; | 165 struct CustomContextMenuContext; |
| 172 struct FaviconURL; | 166 struct FaviconURL; |
| 173 struct FileChooserParams; | 167 struct FileChooserParams; |
| 174 struct RenderViewImplParams; | 168 struct RenderViewImplParams; |
| 175 | 169 |
| 176 #if defined(OS_ANDROID) | 170 #if defined(OS_ANDROID) |
| 171 class WebMediaPlayerManagerAndroid; |
| 177 class WebMediaPlayerProxyImplAndroid; | 172 class WebMediaPlayerProxyImplAndroid; |
| 178 #endif | 173 #endif |
| 179 | 174 |
| 180 // We need to prevent a page from trying to create infinite popups. It is not | 175 // We need to prevent a page from trying to create infinite popups. It is not |
| 181 // as simple as keeping a count of the number of immediate children | 176 // as simple as keeping a count of the number of immediate children |
| 182 // popups. Having an html file that window.open()s itself would create | 177 // popups. Having an html file that window.open()s itself would create |
| 183 // an unlimited chain of RenderViews who only have one RenderView child. | 178 // an unlimited chain of RenderViews who only have one RenderView child. |
| 184 // | 179 // |
| 185 // Therefore, each new top level RenderView creates a new counter and shares it | 180 // Therefore, each new top level RenderView creates a new counter and shares it |
| 186 // with all its children and grandchildren popup RenderViewImpls created with | 181 // with all its children and grandchildren popup RenderViewImpls created with |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 247 |
| 253 MediaStreamDispatcher* media_stream_dispatcher() { | 248 MediaStreamDispatcher* media_stream_dispatcher() { |
| 254 return media_stream_dispatcher_; | 249 return media_stream_dispatcher_; |
| 255 } | 250 } |
| 256 | 251 |
| 257 MouseLockDispatcher* mouse_lock_dispatcher() { | 252 MouseLockDispatcher* mouse_lock_dispatcher() { |
| 258 return mouse_lock_dispatcher_; | 253 return mouse_lock_dispatcher_; |
| 259 } | 254 } |
| 260 | 255 |
| 261 #if defined(OS_ANDROID) | 256 #if defined(OS_ANDROID) |
| 262 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { | 257 WebMediaPlayerManagerAndroid* media_player_manager() { |
| 263 return media_player_manager_.get(); | 258 return media_player_manager_.get(); |
| 264 } | 259 } |
| 265 #endif | 260 #endif |
| 266 | 261 |
| 267 // Lazily initialize this view's BrowserPluginManager and return it. | 262 // Lazily initialize this view's BrowserPluginManager and return it. |
| 268 BrowserPluginManager* GetBrowserPluginManager(); | 263 BrowserPluginManager* GetBrowserPluginManager(); |
| 269 | 264 |
| 270 // Functions to add and remove observers for this object. | 265 // Functions to add and remove observers for this object. |
| 271 void AddObserver(RenderViewObserver* observer); | 266 void AddObserver(RenderViewObserver* observer); |
| 272 void RemoveObserver(RenderViewObserver* observer); | 267 void RemoveObserver(RenderViewObserver* observer); |
| (...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 | 1447 |
| 1453 // List of click-based content detectors. | 1448 // List of click-based content detectors. |
| 1454 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList; | 1449 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList; |
| 1455 ContentDetectorList content_detectors_; | 1450 ContentDetectorList content_detectors_; |
| 1456 | 1451 |
| 1457 // Proxy class for WebMediaPlayer to communicate with the real media player | 1452 // Proxy class for WebMediaPlayer to communicate with the real media player |
| 1458 // objects in browser process. | 1453 // objects in browser process. |
| 1459 WebMediaPlayerProxyImplAndroid* media_player_proxy_; | 1454 WebMediaPlayerProxyImplAndroid* media_player_proxy_; |
| 1460 | 1455 |
| 1461 // The media player manager for managing all the media players on this view. | 1456 // The media player manager for managing all the media players on this view. |
| 1462 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; | 1457 scoped_ptr<WebMediaPlayerManagerAndroid> media_player_manager_; |
| 1463 | 1458 |
| 1464 // A date/time picker object for date and time related input elements. | 1459 // A date/time picker object for date and time related input elements. |
| 1465 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; | 1460 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; |
| 1466 #endif | 1461 #endif |
| 1467 | 1462 |
| 1468 // Plugins ------------------------------------------------------------------- | 1463 // Plugins ------------------------------------------------------------------- |
| 1469 | 1464 |
| 1470 // All the currently active plugin delegates for this RenderView; kept so | 1465 // All the currently active plugin delegates for this RenderView; kept so |
| 1471 // that we can enumerate them to send updates about things like window | 1466 // that we can enumerate them to send updates about things like window |
| 1472 // location or tab focus and visibily. These are non-owning references. | 1467 // location or tab focus and visibily. These are non-owning references. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 // use the Observer interface to filter IPC messages and receive frame change | 1564 // use the Observer interface to filter IPC messages and receive frame change |
| 1570 // notifications. | 1565 // notifications. |
| 1571 // --------------------------------------------------------------------------- | 1566 // --------------------------------------------------------------------------- |
| 1572 | 1567 |
| 1573 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1568 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1574 }; | 1569 }; |
| 1575 | 1570 |
| 1576 } // namespace content | 1571 } // namespace content |
| 1577 | 1572 |
| 1578 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1573 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |