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

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

Issue 2469163002: Clean up source_site_instance usage in Navigator::RequestOpenURL. (Closed)
Patch Set: Charlie's comments Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/frame_host/navigator_delegate.h" 10 #include "content/browser/frame_host/navigator_delegate.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual base::TimeTicks GetCurrentLoadStart(); 108 virtual base::TimeTicks GetCurrentLoadStart();
109 109
110 // The RenderFrameHostImpl has received a request to open a URL with the 110 // The RenderFrameHostImpl has received a request to open a URL with the
111 // specified |disposition|. 111 // specified |disposition|.
112 virtual void RequestOpenURL( 112 virtual void RequestOpenURL(
113 RenderFrameHostImpl* render_frame_host, 113 RenderFrameHostImpl* render_frame_host,
114 const GURL& url, 114 const GURL& url,
115 bool uses_post, 115 bool uses_post,
116 const scoped_refptr<ResourceRequestBodyImpl>& body, 116 const scoped_refptr<ResourceRequestBodyImpl>& body,
117 const std::string& extra_headers, 117 const std::string& extra_headers,
118 SiteInstance* source_site_instance,
119 const Referrer& referrer, 118 const Referrer& referrer,
120 WindowOpenDisposition disposition, 119 WindowOpenDisposition disposition,
121 bool should_replace_current_entry, 120 bool should_replace_current_entry,
122 bool user_gesture) {} 121 bool user_gesture) {}
123 122
124 // The RenderFrameHostImpl wants to transfer the request to a new renderer. 123 // The RenderFrameHostImpl wants to transfer the request to a new renderer.
125 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened 124 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened
126 // before the transfer. If |method| is "POST", then |post_body| needs to 125 // before the transfer. If |method| is "POST", then |post_body| needs to
127 // specify the request body, otherwise |post_body| should be null. 126 // specify the request body, otherwise |post_body| should be null.
128 virtual void RequestTransferURL( 127 virtual void RequestTransferURL(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} 194 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {}
196 195
197 protected: 196 protected:
198 friend class base::RefCounted<Navigator>; 197 friend class base::RefCounted<Navigator>;
199 virtual ~Navigator() {} 198 virtual ~Navigator() {}
200 }; 199 };
201 200
202 } // namespace content 201 } // namespace content
203 202
204 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 203 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698