OLD | NEW |
---|---|
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 CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/common/frame_navigate_params.h" | |
11 | |
12 #include "base/memory/ref_counted.h" | |
10 #include "chrome/browser/ui/host_desktop.h" | 13 #include "chrome/browser/ui/host_desktop.h" |
11 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
12 #include "content/public/browser/global_request_id.h" | 15 #include "content/public/browser/global_request_id.h" |
13 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
14 #include "content/public/common/referrer.h" | 17 #include "content/public/common/referrer.h" |
15 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
16 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
17 #include "webkit/glue/window_open_disposition.h" | 20 #include "webkit/glue/window_open_disposition.h" |
18 | 21 |
19 class Browser; | 22 class Browser; |
20 class Profile; | 23 class Profile; |
21 class TabContents; | 24 class TabContents; |
25 using content::WebHTTPPOSTBodyParams; | |
22 | 26 |
23 namespace chrome { | 27 namespace chrome { |
24 | 28 |
25 // Parameters that tell Navigate() what to do. | 29 // Parameters that tell Navigate() what to do. |
26 // | 30 // |
27 // Some basic examples: | 31 // Some basic examples: |
28 // | 32 // |
29 // Simple Navigate to URL in current tab: | 33 // Simple Navigate to URL in current tab: |
30 // chrome::NavigateParams params(browser, GURL("http://www.google.com/"), | 34 // chrome::NavigateParams params(browser, GURL("http://www.google.com/"), |
31 // content::PAGE_TRANSITION_LINK); | 35 // content::PAGE_TRANSITION_LINK); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 | 200 |
197 // Refers to a navigation that was parked in the browser in order to be | 201 // Refers to a navigation that was parked in the browser in order to be |
198 // transferred to another RVH. Only used in case of a redirection of a request | 202 // transferred to another RVH. Only used in case of a redirection of a request |
199 // to a different site that created a new RVH. | 203 // to a different site that created a new RVH. |
200 content::GlobalRequestID transferred_global_request_id; | 204 content::GlobalRequestID transferred_global_request_id; |
201 | 205 |
202 // Refers to which desktop this navigation should occur on. May be passed | 206 // Refers to which desktop this navigation should occur on. May be passed |
203 // explicitly or inferred from an existing Browser instance. | 207 // explicitly or inferred from an existing Browser instance. |
204 chrome::HostDesktopType host_desktop_type; | 208 chrome::HostDesktopType host_desktop_type; |
205 | 209 |
210 // post data | |
211 std::vector<content::WebHTTPPOSTBodyParams> post_data; | |
michaeln
2012/10/23 23:22:18
How is this construct different than ResourceReque
irobert
2012/10/24 00:51:17
This is the exactly same as the ResourceRequestBod
michaeln
2012/10/24 23:45:39
Looks like ResourceRequestBody and it's Element da
| |
212 | |
206 private: | 213 private: |
207 NavigateParams(); | 214 NavigateParams(); |
208 }; | 215 }; |
209 | 216 |
210 // Navigates according to the configuration specified in |params|. | 217 // Navigates according to the configuration specified in |params|. |
211 void Navigate(NavigateParams* params); | 218 void Navigate(NavigateParams* params); |
212 | 219 |
213 // Returns true if the url is allowed to open in incognito window. | 220 // Returns true if the url is allowed to open in incognito window. |
214 bool IsURLAllowedInIncognito(const GURL& url, | 221 bool IsURLAllowedInIncognito(const GURL& url, |
215 content::BrowserContext* browser_context); | 222 content::BrowserContext* browser_context); |
216 | 223 |
217 } // namespace chrome | 224 } // namespace chrome |
218 | 225 |
219 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 226 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
OLD | NEW |