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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 NavigateParams(Profile* profile, | 60 NavigateParams(Profile* profile, |
61 const GURL& a_url, | 61 const GURL& a_url, |
62 ui::PageTransition a_transition); | 62 ui::PageTransition a_transition); |
63 ~NavigateParams(); | 63 ~NavigateParams(); |
64 | 64 |
65 // The URL/referrer to be loaded. Ignored if |target_contents| is non-NULL. | 65 // The URL/referrer to be loaded. Ignored if |target_contents| is non-NULL. |
66 GURL url; | 66 GURL url; |
67 content::Referrer referrer; | 67 content::Referrer referrer; |
68 | 68 |
69 // The browser-global ID of the frame to navigate, or -1 for the main frame. | 69 // The browser-global ID of the frame to navigate, or -1 for the main frame. |
70 int64 frame_tree_node_id; | 70 int frame_tree_node_id; |
71 | 71 |
72 // Any redirect URLs that occurred for this navigation before |url|. | 72 // Any redirect URLs that occurred for this navigation before |url|. |
73 // Usually empty. | 73 // Usually empty. |
74 std::vector<GURL> redirect_chain; | 74 std::vector<GURL> redirect_chain; |
75 | 75 |
76 // Indicates whether this navigation will be sent using POST. | 76 // Indicates whether this navigation will be sent using POST. |
77 // The POST method is limited support for basic POST data by leveraging | 77 // The POST method is limited support for basic POST data by leveraging |
78 // NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST. | 78 // NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST. |
79 // It is not for things like file uploads. | 79 // It is not for things like file uploads. |
80 bool uses_post; | 80 bool uses_post; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // Navigates according to the configuration specified in |params|. | 253 // Navigates according to the configuration specified in |params|. |
254 void Navigate(NavigateParams* params); | 254 void Navigate(NavigateParams* params); |
255 | 255 |
256 // Returns true if the url is allowed to open in incognito window. | 256 // Returns true if the url is allowed to open in incognito window. |
257 bool IsURLAllowedInIncognito(const GURL& url, | 257 bool IsURLAllowedInIncognito(const GURL& url, |
258 content::BrowserContext* browser_context); | 258 content::BrowserContext* browser_context); |
259 | 259 |
260 } // namespace chrome | 260 } // namespace chrome |
261 | 261 |
262 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 262 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
OLD | NEW |