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

Side by Side Diff: content/browser/frame_host/navigator.h

Issue 358973005: Navigation transitions: Pass is_transition_navigation flag up to the embedder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_FRAME_HOST_NAVIGATOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 25 matching lines...) Expand all
36 public: 36 public:
37 // Returns the NavigationController associated with this Navigator. 37 // Returns the NavigationController associated with this Navigator.
38 virtual NavigationController* GetController(); 38 virtual NavigationController* GetController();
39 39
40 40
41 // Notifications coming from the RenderFrameHosts ---------------------------- 41 // Notifications coming from the RenderFrameHosts ----------------------------
42 42
43 // The RenderFrameHostImpl started a provisional load. 43 // The RenderFrameHostImpl started a provisional load.
44 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 44 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
45 int parent_routing_id, 45 int parent_routing_id,
46 const GURL& url) {}; 46 const GURL& url,
47 bool is_transition_navigation) {};
47 48
48 // The RenderFrameHostImpl has failed a provisional load. 49 // The RenderFrameHostImpl has failed a provisional load.
49 virtual void DidFailProvisionalLoadWithError( 50 virtual void DidFailProvisionalLoadWithError(
50 RenderFrameHostImpl* render_frame_host, 51 RenderFrameHostImpl* render_frame_host,
51 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; 52 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {};
52 53
53 // The RenderFrameHostImpl has failed to load the document. 54 // The RenderFrameHostImpl has failed to load the document.
54 virtual void DidFailLoadWithError( 55 virtual void DidFailLoadWithError(
55 RenderFrameHostImpl* render_frame_host, 56 RenderFrameHostImpl* render_frame_host,
56 const GURL& url, 57 const GURL& url,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 97
97 virtual base::TimeTicks GetCurrentLoadStart(); 98 virtual base::TimeTicks GetCurrentLoadStart();
98 99
99 // The RenderFrameHostImpl has received a request to open a URL with the 100 // The RenderFrameHostImpl has received a request to open a URL with the
100 // specified |disposition|. 101 // specified |disposition|.
101 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 102 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
102 const GURL& url, 103 const GURL& url,
103 const Referrer& referrer, 104 const Referrer& referrer,
104 WindowOpenDisposition disposition, 105 WindowOpenDisposition disposition,
105 bool should_replace_current_entry, 106 bool should_replace_current_entry,
106 bool user_gesture) {} 107 bool user_gesture,
108 bool is_transition_navigation) {}
107 109
108 // The RenderFrameHostImpl wants to transfer the request to a new renderer. 110 // The RenderFrameHostImpl wants to transfer the request to a new renderer.
109 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened 111 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened
110 // before the transfer. 112 // before the transfer.
111 virtual void RequestTransferURL( 113 virtual void RequestTransferURL(
112 RenderFrameHostImpl* render_frame_host, 114 RenderFrameHostImpl* render_frame_host,
113 const GURL& url, 115 const GURL& url,
114 const std::vector<GURL>& redirect_chain, 116 const std::vector<GURL>& redirect_chain,
115 const Referrer& referrer, 117 const Referrer& referrer,
116 PageTransition page_transition, 118 PageTransition page_transition,
117 WindowOpenDisposition disposition, 119 WindowOpenDisposition disposition,
118 const GlobalRequestID& transferred_global_request_id, 120 const GlobalRequestID& transferred_global_request_id,
119 bool should_replace_current_entry, 121 bool should_replace_current_entry,
120 bool user_gesture) {} 122 bool user_gesture,
123 bool is_transition_navigation) {}
121 124
122 protected: 125 protected:
123 friend class base::RefCounted<Navigator>; 126 friend class base::RefCounted<Navigator>;
124 virtual ~Navigator() {} 127 virtual ~Navigator() {}
125 }; 128 };
126 129
127 } // namespace content 130 } // namespace content
128 131
129 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 132 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698