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

Side by Side Diff: chrome/browser/ui/browser_navigator.h

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Comments Created 8 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/ui/host_desktop.h" 10 #include "chrome/browser/ui/host_desktop.h"
11 #include "content/public/browser/browser_context.h" 11 #include "content/public/browser/browser_context.h"
12 #include "content/public/browser/global_request_id.h" 12 #include "content/public/browser/global_request_id.h"
13 #include "content/public/common/frame_navigate_params.h"
13 #include "content/public/common/page_transition_types.h" 14 #include "content/public/common/page_transition_types.h"
14 #include "content/public/common/referrer.h" 15 #include "content/public/common/referrer.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 // chrome/browser/ui/browser_navigator.h
19 // Illegal include: "webkit/glue/resource_request_body.h"
20 // Because of "-webkit" from chrome's include_rules.
21 //#include "webkit/glue/resource_request_body.h"
Charlie Reis 2012/11/20 05:46:03 What's the status of this?
irobert 2012/11/22 01:37:00 I did a investigation on this, but do haven't got
17 #include "webkit/glue/window_open_disposition.h" 22 #include "webkit/glue/window_open_disposition.h"
18 23
19 class Browser; 24 class Browser;
20 class Profile; 25 class Profile;
21 class TabContents; 26 class TabContents;
22 27
23 namespace chrome { 28 namespace chrome {
24 29
25 // Parameters that tell Navigate() what to do. 30 // Parameters that tell Navigate() what to do.
26 // 31 //
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 content::GlobalRequestID transferred_global_request_id; 205 content::GlobalRequestID transferred_global_request_id;
201 206
202 // Refers to which desktop this navigation should occur on. May be passed 207 // Refers to which desktop this navigation should occur on. May be passed
203 // explicitly or inferred from an existing Browser instance. 208 // explicitly or inferred from an existing Browser instance.
204 chrome::HostDesktopType host_desktop_type; 209 chrome::HostDesktopType host_desktop_type;
205 210
206 // Indicates whether this navigation involves a cross-process redirect, 211 // Indicates whether this navigation involves a cross-process redirect,
207 // in which case it should replace the current navigation entry. 212 // in which case it should replace the current navigation entry.
208 bool is_cross_site_redirect; 213 bool is_cross_site_redirect;
209 214
215 // request body
Charlie Reis 2012/11/20 05:46:03 Please elaborate in this comment.
irobert 2012/11/22 01:37:00 Done.
216 scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data;
217
210 private: 218 private:
211 NavigateParams(); 219 NavigateParams();
212 }; 220 };
213 221
214 // Navigates according to the configuration specified in |params|. 222 // Navigates according to the configuration specified in |params|.
215 void Navigate(NavigateParams* params); 223 void Navigate(NavigateParams* params);
216 224
217 // Returns true if the url is allowed to open in incognito window. 225 // Returns true if the url is allowed to open in incognito window.
218 bool IsURLAllowedInIncognito(const GURL& url, 226 bool IsURLAllowedInIncognito(const GURL& url,
219 content::BrowserContext* browser_context); 227 content::BrowserContext* browser_context);
220 228
221 } // namespace chrome 229 } // namespace chrome
222 230
223 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ 231 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698