OLD | NEW |
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/navigation_handle_impl.h" | 10 #include "content/browser/frame_host/navigation_handle_impl.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // The RenderFrameHostImpl has received a request to open a URL with the | 114 // The RenderFrameHostImpl has received a request to open a URL with the |
115 // specified |disposition|. | 115 // specified |disposition|. |
116 virtual void RequestOpenURL( | 116 virtual void RequestOpenURL( |
117 RenderFrameHostImpl* render_frame_host, | 117 RenderFrameHostImpl* render_frame_host, |
118 const GURL& url, | 118 const GURL& url, |
119 bool uses_post, | 119 bool uses_post, |
120 const scoped_refptr<ResourceRequestBodyImpl>& body, | 120 const scoped_refptr<ResourceRequestBodyImpl>& body, |
121 const std::string& extra_headers, | 121 const std::string& extra_headers, |
122 const Referrer& referrer, | 122 const Referrer& referrer, |
123 WindowOpenDisposition disposition, | 123 WindowOpenDisposition disposition, |
124 bool force_new_process_for_new_contents, | |
125 bool should_replace_current_entry, | 124 bool should_replace_current_entry, |
126 bool user_gesture) {} | 125 bool user_gesture) {} |
127 | 126 |
128 // The RenderFrameHostImpl wants to transfer the request to a new renderer. | 127 // The RenderFrameHostImpl wants to transfer the request to a new renderer. |
129 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened | 128 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened |
130 // before the transfer. If |method| is "POST", then |post_body| needs to | 129 // before the transfer. If |method| is "POST", then |post_body| needs to |
131 // specify the request body, otherwise |post_body| should be null. | 130 // specify the request body, otherwise |post_body| should be null. |
132 virtual void RequestTransferURL( | 131 virtual void RequestTransferURL( |
133 RenderFrameHostImpl* render_frame_host, | 132 RenderFrameHostImpl* render_frame_host, |
134 const GURL& url, | 133 const GURL& url, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 virtual void DiscardPendingEntryIfNeeded(int expected_pending_entry_id) {} | 193 virtual void DiscardPendingEntryIfNeeded(int expected_pending_entry_id) {} |
195 | 194 |
196 protected: | 195 protected: |
197 friend class base::RefCounted<Navigator>; | 196 friend class base::RefCounted<Navigator>; |
198 virtual ~Navigator() {} | 197 virtual ~Navigator() {} |
199 }; | 198 }; |
200 | 199 |
201 } // namespace content | 200 } // namespace content |
202 | 201 |
203 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 202 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |