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

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 Structure and Tests 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"
irobert 2012/11/05 17:57:51 I am planning to include resource_request_body.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"
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 201
197 // Refers to a navigation that was parked in the browser in order to be 202 // 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 203 // transferred to another RVH. Only used in case of a redirection of a request
199 // to a different site that created a new RVH. 204 // to a different site that created a new RVH.
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
211 // request body
212 scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data;
213
206 private: 214 private:
207 NavigateParams(); 215 NavigateParams();
208 }; 216 };
209 217
210 // Navigates according to the configuration specified in |params|. 218 // Navigates according to the configuration specified in |params|.
211 void Navigate(NavigateParams* params); 219 void Navigate(NavigateParams* params);
212 220
213 // Returns true if the url is allowed to open in incognito window. 221 // Returns true if the url is allowed to open in incognito window.
214 bool IsURLAllowedInIncognito(const GURL& url, 222 bool IsURLAllowedInIncognito(const GURL& url,
215 content::BrowserContext* browser_context); 223 content::BrowserContext* browser_context);
216 224
217 } // namespace chrome 225 } // namespace chrome
218 226
219 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ 227 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698