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

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

Issue 135723003: Move DidCommitProvisionalLoad code from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clean up, ready to start reviewing. 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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 FRIEND_TEST_ALL_PREFIXES(SuppressErrorPageTest, DoesNotSuppress); 808 FRIEND_TEST_ALL_PREFIXES(SuppressErrorPageTest, DoesNotSuppress);
809 809
810 typedef std::map<GURL, double> HostZoomLevels; 810 typedef std::map<GURL, double> HostZoomLevels;
811 811
812 enum ErrorPageType { 812 enum ErrorPageType {
813 DNS_ERROR, 813 DNS_ERROR,
814 HTTP_404, 814 HTTP_404,
815 CONNECTION_ERROR, 815 CONNECTION_ERROR,
816 }; 816 };
817 817
818 static void GetRedirectChain(blink::WebDataSource* ds,
819 std::vector<GURL>* result);
820
821 static blink::WebReferrerPolicy GetReferrerPolicyFromRequest( 818 static blink::WebReferrerPolicy GetReferrerPolicyFromRequest(
822 blink::WebFrame* frame, 819 blink::WebFrame* frame,
823 const blink::WebURLRequest& request); 820 const blink::WebURLRequest& request);
824 821
825 static Referrer GetReferrerFromRequest( 822 static Referrer GetReferrerFromRequest(
826 blink::WebFrame* frame, 823 blink::WebFrame* frame,
827 const blink::WebURLRequest& request); 824 const blink::WebURLRequest& request);
828 825
829 static webkit_glue::WebURLResponseExtraDataImpl* GetExtraDataFromResponse(
830 const blink::WebURLResponse& response);
831
832 void UpdateURL(blink::WebFrame* frame);
833 void UpdateTitle(blink::WebFrame* frame, const base::string16& title, 826 void UpdateTitle(blink::WebFrame* frame, const base::string16& title,
834 blink::WebTextDirection title_direction); 827 blink::WebTextDirection title_direction);
835 void UpdateSessionHistory(blink::WebFrame* frame); 828 void UpdateSessionHistory(blink::WebFrame* frame);
836 void SendUpdateState(const blink::WebHistoryItem& item); 829 void SendUpdateState(const blink::WebHistoryItem& item);
837 830
838 // Update current main frame's encoding and send it to browser window. 831 // Update current main frame's encoding and send it to browser window.
839 // Since we want to let users see the right encoding info from menu 832 // Since we want to let users see the right encoding info from menu
840 // before finishing loading, we call the UpdateEncoding in 833 // before finishing loading, we call the UpdateEncoding in
841 // a) function:DidCommitLoadForFrame. When this function is called, 834 // a) function:DidCommitLoadForFrame. When this function is called,
842 // that means we have got first data. In here we try to get encoding 835 // that means we have got first data. In here we try to get encoding
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 // use the Observer interface to filter IPC messages and receive frame change 1470 // use the Observer interface to filter IPC messages and receive frame change
1478 // notifications. 1471 // notifications.
1479 // --------------------------------------------------------------------------- 1472 // ---------------------------------------------------------------------------
1480 1473
1481 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1474 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1482 }; 1475 };
1483 1476
1484 } // namespace content 1477 } // namespace content
1485 1478
1486 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1479 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698