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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 class NavigationState; | 157 class NavigationState; |
158 class NotificationProvider; | 158 class NotificationProvider; |
159 class RenderViewObserver; | 159 class RenderViewObserver; |
160 class RenderViewTest; | 160 class RenderViewTest; |
161 class RendererAccessibility; | 161 class RendererAccessibility; |
162 class RendererDateTimePicker; | 162 class RendererDateTimePicker; |
163 class RendererPpapiHost; | 163 class RendererPpapiHost; |
164 class RendererWebColorChooserImpl; | 164 class RendererWebColorChooserImpl; |
165 class RenderWidgetFullscreenPepper; | 165 class RenderWidgetFullscreenPepper; |
166 class SpeechRecognitionDispatcher; | 166 class SpeechRecognitionDispatcher; |
167 class WebIntentsHost; | |
168 class WebPluginDelegateProxy; | 167 class WebPluginDelegateProxy; |
169 struct CustomContextMenuContext; | 168 struct CustomContextMenuContext; |
170 struct FileChooserParams; | 169 struct FileChooserParams; |
171 struct RenderViewImplParams; | 170 struct RenderViewImplParams; |
172 | 171 |
173 #if defined(OS_ANDROID) | 172 #if defined(OS_ANDROID) |
174 class WebMediaPlayerProxyImplAndroid; | 173 class WebMediaPlayerProxyImplAndroid; |
175 #endif | 174 #endif |
176 | 175 |
177 // We need to prevent a page from trying to create infinite popups. It is not | 176 // We need to prevent a page from trying to create infinite popups. It is not |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 WebKit::WebFileSystemCallbacks* callbacks); | 657 WebKit::WebFileSystemCallbacks* callbacks); |
659 virtual void queryStorageUsageAndQuota( | 658 virtual void queryStorageUsageAndQuota( |
660 WebKit::WebFrame* frame, | 659 WebKit::WebFrame* frame, |
661 WebKit::WebStorageQuotaType type, | 660 WebKit::WebStorageQuotaType type, |
662 WebKit::WebStorageQuotaCallbacks* callbacks); | 661 WebKit::WebStorageQuotaCallbacks* callbacks); |
663 virtual void requestStorageQuota( | 662 virtual void requestStorageQuota( |
664 WebKit::WebFrame* frame, | 663 WebKit::WebFrame* frame, |
665 WebKit::WebStorageQuotaType type, | 664 WebKit::WebStorageQuotaType type, |
666 unsigned long long requested_size, | 665 unsigned long long requested_size, |
667 WebKit::WebStorageQuotaCallbacks* callbacks); | 666 WebKit::WebStorageQuotaCallbacks* callbacks); |
668 virtual void registerIntentService( | |
669 WebKit::WebFrame* frame, | |
670 const WebKit::WebIntentServiceInfo& service); | |
671 virtual void dispatchIntent(WebKit::WebFrame* frame, | |
672 const WebKit::WebIntentRequest& intentRequest); | |
673 virtual void willOpenSocketStream( | 667 virtual void willOpenSocketStream( |
674 WebKit::WebSocketStreamHandle* handle); | 668 WebKit::WebSocketStreamHandle* handle); |
675 virtual void willStartUsingPeerConnectionHandler(WebKit::WebFrame* frame, | 669 virtual void willStartUsingPeerConnectionHandler(WebKit::WebFrame* frame, |
676 WebKit::WebRTCPeerConnectionHandler* handler) OVERRIDE; | 670 WebKit::WebRTCPeerConnectionHandler* handler) OVERRIDE; |
677 virtual bool willCheckAndDispatchMessageEvent( | 671 virtual bool willCheckAndDispatchMessageEvent( |
678 WebKit::WebFrame* sourceFrame, | 672 WebKit::WebFrame* sourceFrame, |
679 WebKit::WebFrame* targetFrame, | 673 WebKit::WebFrame* targetFrame, |
680 WebKit::WebSecurityOrigin targetOrigin, | 674 WebKit::WebSecurityOrigin targetOrigin, |
681 WebKit::WebDOMMessageEvent event) OVERRIDE; | 675 WebKit::WebDOMMessageEvent event) OVERRIDE; |
682 virtual WebKit::WebString userAgentOverride( | 676 virtual WebKit::WebString userAgentOverride( |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 RenderViewImpl(RenderViewImplParams* params); | 807 RenderViewImpl(RenderViewImplParams* params); |
814 | 808 |
815 // Do not delete directly. This class is reference counted. | 809 // Do not delete directly. This class is reference counted. |
816 virtual ~RenderViewImpl(); | 810 virtual ~RenderViewImpl(); |
817 | 811 |
818 private: | 812 private: |
819 // For unit tests. | 813 // For unit tests. |
820 friend class ExternalPopupMenuTest; | 814 friend class ExternalPopupMenuTest; |
821 friend class PepperDeviceTest; | 815 friend class PepperDeviceTest; |
822 friend class RendererAccessibilityTest; | 816 friend class RendererAccessibilityTest; |
823 friend class WebIntentsHostTest; | |
824 friend class RenderViewTest; | 817 friend class RenderViewTest; |
825 | 818 |
826 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 819 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
827 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 820 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
828 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 821 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); | 822 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); |
830 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 823 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
831 DontIgnoreBackAfterNavEntryLimit); | 824 DontIgnoreBackAfterNavEntryLimit); |
832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); | 825 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); |
833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); | 826 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 // The next group of objects all implement RenderViewObserver, so are deleted | 1383 // The next group of objects all implement RenderViewObserver, so are deleted |
1391 // along with the RenderView automatically. This is why we just store | 1384 // along with the RenderView automatically. This is why we just store |
1392 // weak references. | 1385 // weak references. |
1393 | 1386 |
1394 // Holds a reference to the service which provides desktop notifications. | 1387 // Holds a reference to the service which provides desktop notifications. |
1395 NotificationProvider* notification_provider_; | 1388 NotificationProvider* notification_provider_; |
1396 | 1389 |
1397 // The geolocation dispatcher attached to this view, lazily initialized. | 1390 // The geolocation dispatcher attached to this view, lazily initialized. |
1398 GeolocationDispatcher* geolocation_dispatcher_; | 1391 GeolocationDispatcher* geolocation_dispatcher_; |
1399 | 1392 |
1400 // The intents host attached to this view. Not lazily initialized. | |
1401 WebIntentsHost* intents_host_; | |
1402 | |
1403 // The speech dispatcher attached to this view, lazily initialized. | 1393 // The speech dispatcher attached to this view, lazily initialized. |
1404 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; | 1394 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; |
1405 | 1395 |
1406 // The speech recognition dispatcher attached to this view, lazily | 1396 // The speech recognition dispatcher attached to this view, lazily |
1407 // initialized. | 1397 // initialized. |
1408 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; | 1398 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; |
1409 | 1399 |
1410 // Device orientation dispatcher attached to this view; lazily initialized. | 1400 // Device orientation dispatcher attached to this view; lazily initialized. |
1411 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1401 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1412 | 1402 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 // use the Observer interface to filter IPC messages and receive frame change | 1588 // use the Observer interface to filter IPC messages and receive frame change |
1599 // notifications. | 1589 // notifications. |
1600 // --------------------------------------------------------------------------- | 1590 // --------------------------------------------------------------------------- |
1601 | 1591 |
1602 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1592 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1603 }; | 1593 }; |
1604 | 1594 |
1605 } // namespace content | 1595 } // namespace content |
1606 | 1596 |
1607 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1597 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |