Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 14188060: Change decidePolicyForNavigation() to takea WebDataSource::ExtraData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
536 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( 537 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(
537 WebKit::WebFrame* frame, 538 WebKit::WebFrame* frame,
538 WebKit::WebDataSource* dataSource, 539 WebKit::WebDataSource::ExtraData* extraData,
539 const WebKit::WebURLRequest& request, 540 const WebKit::WebURLRequest& request,
540 WebKit::WebNavigationType type, 541 WebKit::WebNavigationType type,
541 WebKit::WebNavigationPolicy default_policy, 542 WebKit::WebNavigationPolicy default_policy,
542 bool is_redirect); 543 bool is_redirect);
543 // DEPRECATED. 544 // DEPRECATED.
544 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( 545 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(
545 WebKit::WebFrame* frame, 546 WebKit::WebFrame* frame,
546 const WebKit::WebURLRequest& request, 547 const WebKit::WebURLRequest& request,
547 WebKit::WebNavigationType type, 548 WebKit::WebNavigationType type,
548 WebKit::WebNavigationPolicy default_policy, 549 WebKit::WebNavigationPolicy default_policy,
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 friend class ExternalPopupMenuTest; 821 friend class ExternalPopupMenuTest;
821 friend class PepperDeviceTest; 822 friend class PepperDeviceTest;
822 friend class RendererAccessibilityTest; 823 friend class RendererAccessibilityTest;
823 friend class RenderViewTest; 824 friend class RenderViewTest;
824 825
825 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 826 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
826 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); 827 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
827 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); 828 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate);
828 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); 829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI);
829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 830 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
831 DidFailProvisionalLoadWithErrorForError);
832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
833 DidFailProvisionalLoadWithErrorForCancellation);
834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
830 DontIgnoreBackAfterNavEntryLimit); 835 DontIgnoreBackAfterNavEntryLimit);
831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); 836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition);
832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); 837 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters);
833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); 838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad);
834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); 839 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState);
835 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); 840 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete);
836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); 841 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent);
837 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); 842 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged);
838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); 843 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged);
839 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); 844 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection);
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 // use the Observer interface to filter IPC messages and receive frame change 1531 // use the Observer interface to filter IPC messages and receive frame change
1527 // notifications. 1532 // notifications.
1528 // --------------------------------------------------------------------------- 1533 // ---------------------------------------------------------------------------
1529 1534
1530 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1535 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1531 }; 1536 };
1532 1537
1533 } // namespace content 1538 } // namespace content
1534 1539
1535 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1540 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698