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/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // This is only used in OOPIF-enabled modes. | 103 // This is only used in OOPIF-enabled modes. |
104 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, | 104 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, |
105 const std::string& unique_name); | 105 const std::string& unique_name); |
106 | 106 |
107 // Navigation requests ------------------------------------------------------- | 107 // Navigation requests ------------------------------------------------------- |
108 | 108 |
109 virtual base::TimeTicks GetCurrentLoadStart(); | 109 virtual base::TimeTicks GetCurrentLoadStart(); |
110 | 110 |
111 // The RenderFrameHostImpl has received a request to open a URL with the | 111 // The RenderFrameHostImpl has received a request to open a URL with the |
112 // specified |disposition|. | 112 // specified |disposition|. |
113 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 113 virtual void RequestOpenURL( |
114 const GURL& url, | 114 RenderFrameHostImpl* render_frame_host, |
115 SiteInstance* source_site_instance, | 115 const GURL& url, |
116 const Referrer& referrer, | 116 bool uses_post, |
117 WindowOpenDisposition disposition, | 117 const scoped_refptr<ResourceRequestBodyImpl>& body, |
118 bool should_replace_current_entry, | 118 SiteInstance* source_site_instance, |
119 bool user_gesture) {} | 119 const Referrer& referrer, |
| 120 WindowOpenDisposition disposition, |
| 121 bool should_replace_current_entry, |
| 122 bool user_gesture) {} |
120 | 123 |
121 // The RenderFrameHostImpl wants to transfer the request to a new renderer. | 124 // The RenderFrameHostImpl wants to transfer the request to a new renderer. |
122 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened | 125 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened |
123 // before the transfer. If |method| is "POST", then |post_body| needs to | 126 // before the transfer. If |method| is "POST", then |post_body| needs to |
124 // specify the request body, otherwise |post_body| should be null. | 127 // specify the request body, otherwise |post_body| should be null. |
125 virtual void RequestTransferURL( | 128 virtual void RequestTransferURL( |
126 RenderFrameHostImpl* render_frame_host, | 129 RenderFrameHostImpl* render_frame_host, |
127 const GURL& url, | 130 const GURL& url, |
128 SiteInstance* source_site_instance, | 131 SiteInstance* source_site_instance, |
129 const std::vector<GURL>& redirect_chain, | 132 const std::vector<GURL>& redirect_chain, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const base::TimeTicks& renderer_before_unload_end_time) {} | 182 const base::TimeTicks& renderer_before_unload_end_time) {} |
180 | 183 |
181 protected: | 184 protected: |
182 friend class base::RefCounted<Navigator>; | 185 friend class base::RefCounted<Navigator>; |
183 virtual ~Navigator() {} | 186 virtual ~Navigator() {} |
184 }; | 187 }; |
185 | 188 |
186 } // namespace content | 189 } // namespace content |
187 | 190 |
188 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 191 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |