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

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

Issue 148083013: Move browser initiated navigation from RenderViewHost to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ASAN builds. Try 2. Created 6 years, 10 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the 68 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the
69 // root. VS warns when we inherit the WebWidgetClient method implementations 69 // root. VS warns when we inherit the WebWidgetClient method implementations
70 // from RenderWidget. It's safe to ignore that warning. 70 // from RenderWidget. It's safe to ignore that warning.
71 #pragma warning(disable: 4250) 71 #pragma warning(disable: 4250)
72 #endif 72 #endif
73 73
74 class CommandLine; 74 class CommandLine;
75 class PepperDeviceTest; 75 class PepperDeviceTest;
76 class SkBitmap; 76 class SkBitmap;
77 struct PP_NetAddress_Private; 77 struct PP_NetAddress_Private;
78 struct ViewMsg_Navigate_Params; 78 struct FrameMsg_Navigate_Params;
79 struct ViewMsg_PostMessage_Params; 79 struct ViewMsg_PostMessage_Params;
80 struct ViewMsg_StopFinding_Params; 80 struct ViewMsg_StopFinding_Params;
81 81
82 namespace ui { 82 namespace ui {
83 struct SelectedFileInfo; 83 struct SelectedFileInfo;
84 } // namespace ui 84 } // namespace ui
85 85
86 namespace blink { 86 namespace blink {
87 class WebApplicationCacheHost; 87 class WebApplicationCacheHost;
88 class WebApplicationCacheHostClient; 88 class WebApplicationCacheHostClient;
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 FRIEND_TEST_ALL_PREFIXES(SuppressErrorPageTest, DoesNotSuppress); 800 FRIEND_TEST_ALL_PREFIXES(SuppressErrorPageTest, DoesNotSuppress);
801 801
802 typedef std::map<GURL, double> HostZoomLevels; 802 typedef std::map<GURL, double> HostZoomLevels;
803 803
804 enum ErrorPageType { 804 enum ErrorPageType {
805 DNS_ERROR, 805 DNS_ERROR,
806 HTTP_404, 806 HTTP_404,
807 CONNECTION_ERROR, 807 CONNECTION_ERROR,
808 }; 808 };
809 809
810 static blink::WebReferrerPolicy GetReferrerPolicyFromRequest( 810 static bool IsReload(const FrameMsg_Navigate_Params& params);
Charlie Reis 2014/02/13 01:23:53 Why is this no longer needed? Dead code?
nasko 2014/02/13 17:05:27 Jochen removed the implementation in https://coder
811 blink::WebFrame* frame,
812 const blink::WebURLRequest& request);
813 811
814 static Referrer GetReferrerFromRequest( 812 static Referrer GetReferrerFromRequest(
815 blink::WebFrame* frame, 813 blink::WebFrame* frame,
816 const blink::WebURLRequest& request); 814 const blink::WebURLRequest& request);
817 815
818 void UpdateTitle(blink::WebFrame* frame, const base::string16& title, 816 void UpdateTitle(blink::WebFrame* frame, const base::string16& title,
819 blink::WebTextDirection title_direction); 817 blink::WebTextDirection title_direction);
820 void UpdateSessionHistory(blink::WebFrame* frame); 818 void UpdateSessionHistory(blink::WebFrame* frame);
821 void SendUpdateState(const blink::WebHistoryItem& item); 819 void SendUpdateState(const blink::WebHistoryItem& item);
822 820
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( 918 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks(
921 const std::vector<GURL>& links, 919 const std::vector<GURL>& links,
922 const std::vector<base::FilePath>& local_paths, 920 const std::vector<base::FilePath>& local_paths,
923 const base::FilePath& local_directory_name); 921 const base::FilePath& local_directory_name);
924 void OnMediaPlayerActionAt(const gfx::Point& location, 922 void OnMediaPlayerActionAt(const gfx::Point& location,
925 const blink::WebMediaPlayerAction& action); 923 const blink::WebMediaPlayerAction& action);
926 void OnOrientationChangeEvent(int orientation); 924 void OnOrientationChangeEvent(int orientation);
927 void OnPluginActionAt(const gfx::Point& location, 925 void OnPluginActionAt(const gfx::Point& location,
928 const blink::WebPluginAction& action); 926 const blink::WebPluginAction& action);
929 void OnMoveOrResizeStarted(); 927 void OnMoveOrResizeStarted();
930 void OnNavigate(const ViewMsg_Navigate_Params& params); 928 void OnNavigate(const FrameMsg_Navigate_Params& params);
Charlie Reis 2014/02/13 01:23:53 Maybe we should move this out of the IPC handlers
nasko 2014/02/13 17:05:27 Done.
931 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); 929 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params);
932 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); 930 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle);
933 void OnReloadFrame(); 931 void OnReloadFrame();
934 void OnResetPageEncodingToDefault(); 932 void OnResetPageEncodingToDefault();
935 void OnScriptEvalRequest(const base::string16& frame_xpath, 933 void OnScriptEvalRequest(const base::string16& frame_xpath,
936 const base::string16& jscript, 934 const base::string16& jscript,
937 int id, 935 int id,
938 bool notify_result); 936 bool notify_result);
939 void OnSetAccessibilityMode(AccessibilityMode new_mode); 937 void OnSetAccessibilityMode(AccessibilityMode new_mode);
940 void OnSetActive(bool active); 938 void OnSetActive(bool active);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 blink::WebFrame* GetChildFrame(const base::string16& frame_xpath) const; 1019 blink::WebFrame* GetChildFrame(const base::string16& frame_xpath) const;
1022 1020
1023 // Returns the URL being loaded by the given frame's request. 1021 // Returns the URL being loaded by the given frame's request.
1024 GURL GetLoadingUrl(blink::WebFrame* frame) const; 1022 GURL GetLoadingUrl(blink::WebFrame* frame) const;
1025 1023
1026 // Should only be called if this object wraps a PluginDocument. 1024 // Should only be called if this object wraps a PluginDocument.
1027 blink::WebPlugin* GetWebPluginFromPluginDocument(); 1025 blink::WebPlugin* GetWebPluginFromPluginDocument();
1028 1026
1029 // Returns true if the |params| navigation is to an entry that has been 1027 // Returns true if the |params| navigation is to an entry that has been
1030 // cropped due to a recent navigation the browser did not know about. 1028 // cropped due to a recent navigation the browser did not know about.
1031 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, 1029 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params,
1032 bool is_reload); 1030 bool is_reload);
1033 1031
1034 // Make this RenderView show an empty, unscriptable page. 1032 // Make this RenderView show an empty, unscriptable page.
1035 void NavigateToSwappedOutURL(blink::WebFrame* frame); 1033 void NavigateToSwappedOutURL(blink::WebFrame* frame);
1036 1034
1037 // If we initiated a navigation, this function will populate |document_state| 1035 // If we initiated a navigation, this function will populate |document_state|
1038 // with the navigation information saved in OnNavigate(). 1036 // with the navigation information saved in OnNavigate().
1039 void PopulateDocumentStateFromPending(DocumentState* document_state); 1037 void PopulateDocumentStateFromPending(DocumentState* document_state);
1040 1038
1041 // Returns a new NavigationState populated with the navigation information 1039 // Returns a new NavigationState populated with the navigation information
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 1172
1175 // Whether we must stop creating nested message loops for modal dialogs until 1173 // Whether we must stop creating nested message loops for modal dialogs until
1176 // OnSwapOut is called. This is necessary because modal dialogs have a 1174 // OnSwapOut is called. This is necessary because modal dialogs have a
1177 // PageGroupLoadDeferrer on the stack that interferes with swapping out. 1175 // PageGroupLoadDeferrer on the stack that interferes with swapping out.
1178 bool suppress_dialogs_until_swap_out_; 1176 bool suppress_dialogs_until_swap_out_;
1179 1177
1180 // Holds state pertaining to a navigation that we initiated. This is held by 1178 // Holds state pertaining to a navigation that we initiated. This is held by
1181 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ 1179 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_
1182 // as a temporary holder for the state until the WebDataSource corresponding 1180 // as a temporary holder for the state until the WebDataSource corresponding
1183 // to the new navigation is created. See DidCreateDataSource. 1181 // to the new navigation is created. See DidCreateDataSource.
1184 scoped_ptr<ViewMsg_Navigate_Params> pending_navigation_params_; 1182 scoped_ptr<FrameMsg_Navigate_Params> pending_navigation_params_;
Charlie Reis 2014/02/13 01:23:53 TODO to move this?
nasko 2014/02/13 17:05:27 Done.
1185 1183
1186 // Timer used to delay the updating of nav state (see SyncNavigationState). 1184 // Timer used to delay the updating of nav state (see SyncNavigationState).
1187 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; 1185 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_;
1188 1186
1189 // Page IDs ------------------------------------------------------------------ 1187 // Page IDs ------------------------------------------------------------------
1190 // See documentation in RenderView. 1188 // See documentation in RenderView.
1191 int32 page_id_; 1189 int32 page_id_;
1192 1190
1193 // Indicates the ID of the last page that we sent a FrameNavigate to the 1191 // Indicates the ID of the last page that we sent a FrameNavigate to the
1194 // browser for. This is used to determine if the most recent transition 1192 // browser for. This is used to determine if the most recent transition
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 // use the Observer interface to filter IPC messages and receive frame change 1460 // use the Observer interface to filter IPC messages and receive frame change
1463 // notifications. 1461 // notifications.
1464 // --------------------------------------------------------------------------- 1462 // ---------------------------------------------------------------------------
1465 1463
1466 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1464 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1467 }; 1465 };
1468 1466
1469 } // namespace content 1467 } // namespace content
1470 1468
1471 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1469 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698