| 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) |
| 177 class WebMediaPlayerProxyImplAndroid; | 171 class WebMediaPlayerManagerAndroid; |
| 172 class WebMediaPlayerProxyAndroid; |
| 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 |
| 187 // createView() to have a sort of global limit for the page so no more than | 182 // createView() to have a sort of global limit for the page so no more than |
| (...skipping 64 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 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 // Expected id of the next content intent launched. Used to prevent scheduled | 1448 // Expected id of the next content intent launched. Used to prevent scheduled |
| 1454 // intents to be launched if aborted. | 1449 // intents to be launched if aborted. |
| 1455 size_t expected_content_intent_id_; | 1450 size_t expected_content_intent_id_; |
| 1456 | 1451 |
| 1457 // List of click-based content detectors. | 1452 // List of click-based content detectors. |
| 1458 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList; | 1453 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList; |
| 1459 ContentDetectorList content_detectors_; | 1454 ContentDetectorList content_detectors_; |
| 1460 | 1455 |
| 1461 // Proxy class for WebMediaPlayer to communicate with the real media player | 1456 // Proxy class for WebMediaPlayer to communicate with the real media player |
| 1462 // objects in browser process. | 1457 // objects in browser process. |
| 1463 WebMediaPlayerProxyImplAndroid* media_player_proxy_; | 1458 WebMediaPlayerProxyAndroid* media_player_proxy_; |
| 1464 | 1459 |
| 1465 // The media player manager for managing all the media players on this view. | 1460 // The media player manager for managing all the media players on this view. |
| 1466 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; | 1461 scoped_ptr<WebMediaPlayerManagerAndroid> media_player_manager_; |
| 1467 | 1462 |
| 1468 // A date/time picker object for date and time related input elements. | 1463 // A date/time picker object for date and time related input elements. |
| 1469 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; | 1464 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; |
| 1470 #endif | 1465 #endif |
| 1471 | 1466 |
| 1472 // Plugins ------------------------------------------------------------------- | 1467 // Plugins ------------------------------------------------------------------- |
| 1473 | 1468 |
| 1474 // All the currently active plugin delegates for this RenderView; kept so | 1469 // All the currently active plugin delegates for this RenderView; kept so |
| 1475 // that we can enumerate them to send updates about things like window | 1470 // that we can enumerate them to send updates about things like window |
| 1476 // location or tab focus and visibily. These are non-owning references. | 1471 // location or tab focus and visibily. These are non-owning references. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 // use the Observer interface to filter IPC messages and receive frame change | 1568 // use the Observer interface to filter IPC messages and receive frame change |
| 1574 // notifications. | 1569 // notifications. |
| 1575 // --------------------------------------------------------------------------- | 1570 // --------------------------------------------------------------------------- |
| 1576 | 1571 |
| 1577 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1572 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1578 }; | 1573 }; |
| 1579 | 1574 |
| 1580 } // namespace content | 1575 } // namespace content |
| 1581 | 1576 |
| 1582 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1577 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |