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 22 matching lines...) Expand all Loading... |
33 #include "content/public/common/stop_find_action.h" | 33 #include "content/public/common/stop_find_action.h" |
34 #include "content/public/renderer/render_view.h" | 34 #include "content/public/renderer/render_view.h" |
35 #include "content/renderer/mouse_lock_dispatcher.h" | 35 #include "content/renderer/mouse_lock_dispatcher.h" |
36 #include "content/renderer/render_view_pepper_helper.h" | 36 #include "content/renderer/render_view_pepper_helper.h" |
37 #include "content/renderer/render_widget.h" | 37 #include "content/renderer/render_widget.h" |
38 #include "content/renderer/renderer_webcookiejar_impl.h" | 38 #include "content/renderer/renderer_webcookiejar_impl.h" |
39 #include "ipc/ipc_platform_file.h" | 39 #include "ipc/ipc_platform_file.h" |
40 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" | 40 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" |
41 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 41 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 virtual void willClose(WebKit::WebFrame* frame); | 527 virtual void willClose(WebKit::WebFrame* frame); |
527 virtual void didChangeName(WebKit::WebFrame* frame, | 528 virtual void didChangeName(WebKit::WebFrame* frame, |
528 const WebKit::WebString& name); | 529 const WebKit::WebString& name); |
529 virtual void loadURLExternally(WebKit::WebFrame* frame, | 530 virtual void loadURLExternally(WebKit::WebFrame* frame, |
530 const WebKit::WebURLRequest& request, | 531 const WebKit::WebURLRequest& request, |
531 WebKit::WebNavigationPolicy policy); | 532 WebKit::WebNavigationPolicy policy); |
532 virtual void loadURLExternally(WebKit::WebFrame* frame, | 533 virtual void loadURLExternally(WebKit::WebFrame* frame, |
533 const WebKit::WebURLRequest& request, | 534 const WebKit::WebURLRequest& request, |
534 WebKit::WebNavigationPolicy policy, | 535 WebKit::WebNavigationPolicy policy, |
535 const WebKit::WebString& suggested_name); | 536 const WebKit::WebString& suggested_name); |
| 537 |
| 538 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. |
536 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 539 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
537 WebKit::WebFrame* frame, | 540 WebKit::WebFrame* frame, |
538 WebKit::WebDataSource* dataSource, | 541 WebKit::WebDataSource::ExtraData* extraData, |
539 const WebKit::WebURLRequest& request, | 542 const WebKit::WebURLRequest& request, |
540 WebKit::WebNavigationType type, | 543 WebKit::WebNavigationType type, |
541 WebKit::WebNavigationPolicy default_policy, | 544 WebKit::WebNavigationPolicy default_policy, |
542 bool is_redirect); | 545 bool is_redirect); |
543 // DEPRECATED. | 546 // DEPRECATED. |
544 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 547 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
545 WebKit::WebFrame* frame, | 548 WebKit::WebFrame* frame, |
546 const WebKit::WebURLRequest& request, | 549 const WebKit::WebURLRequest& request, |
547 WebKit::WebNavigationType type, | 550 WebKit::WebNavigationType type, |
548 WebKit::WebNavigationPolicy default_policy, | 551 WebKit::WebNavigationPolicy default_policy, |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 friend class ExternalPopupMenuTest; | 823 friend class ExternalPopupMenuTest; |
821 friend class PepperDeviceTest; | 824 friend class PepperDeviceTest; |
822 friend class RendererAccessibilityTest; | 825 friend class RendererAccessibilityTest; |
823 friend class RenderViewTest; | 826 friend class RenderViewTest; |
824 | 827 |
825 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 828 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
826 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 829 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
827 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 830 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
828 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); | 831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); |
829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 833 DidFailProvisionalLoadWithErrorForError); |
| 834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 835 DidFailProvisionalLoadWithErrorForCancellation); |
| 836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
830 DontIgnoreBackAfterNavEntryLimit); | 837 DontIgnoreBackAfterNavEntryLimit); |
831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); | 838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); |
832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); | 839 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); |
833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); | 840 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); |
834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); | 841 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); |
835 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); | 842 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); |
836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); | 843 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); |
837 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); | 844 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); |
838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); | 845 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); |
839 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); | 846 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 // use the Observer interface to filter IPC messages and receive frame change | 1535 // use the Observer interface to filter IPC messages and receive frame change |
1529 // notifications. | 1536 // notifications. |
1530 // --------------------------------------------------------------------------- | 1537 // --------------------------------------------------------------------------- |
1531 | 1538 |
1532 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1539 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1533 }; | 1540 }; |
1534 | 1541 |
1535 } // namespace content | 1542 } // namespace content |
1536 | 1543 |
1537 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1544 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |