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

Side by Side Diff: content/public/browser/page_navigator.h

Issue 2022483003: ABANDONED CL: LoadURLParams: Add |method| + removing LOAD_TYPE_BROWSER_INITIATED_HTTP_POST. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@post-data-my-stuff
Patch Set: Rebasing... Created 4 years, 6 months 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
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // PageNavigator defines an interface that can be used to express the user's 5 // PageNavigator defines an interface that can be used to express the user's
6 // intention to navigate to a particular URL. The implementing class should 6 // intention to navigate to a particular URL. The implementing class should
7 // perform the navigation. 7 // perform the navigation.
8 8
9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 Referrer referrer; 45 Referrer referrer;
46 46
47 // SiteInstance of the frame that initiated the navigation or null if we 47 // SiteInstance of the frame that initiated the navigation or null if we
48 // don't know it. 48 // don't know it.
49 scoped_refptr<content::SiteInstance> source_site_instance; 49 scoped_refptr<content::SiteInstance> source_site_instance;
50 50
51 // Any redirect URLs that occurred for this navigation before |url|. 51 // Any redirect URLs that occurred for this navigation before |url|.
52 std::vector<GURL> redirect_chain; 52 std::vector<GURL> redirect_chain;
53 53
54 // Indicates whether this navigation will be sent using POST. 54 // Indicates whether this navigation will be sent using POST.
55 // The POST method is limited support for basic POST data by leveraging
56 // NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST.
57 // It is not for things like file uploads.
58 bool uses_post; 55 bool uses_post;
59 56
60 // The post data when the navigation uses POST. 57 // The post data when the navigation uses POST.
61 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; 58 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data;
62 59
63 // Extra headers to add to the request for this page. Headers are 60 // Extra headers to add to the request for this page. Headers are
64 // represented as "<name>: <value>" and separated by \r\n. The entire string 61 // represented as "<name>: <value>" and separated by \r\n. The entire string
65 // is terminated by \r\n. May be empty if no extra headers are needed. 62 // is terminated by \r\n. May be empty if no extra headers are needed.
66 std::string extra_headers; 63 std::string extra_headers;
67 64
(...skipping 28 matching lines...) Expand all
96 // Opens a URL with the given disposition. The transition specifies how this 93 // Opens a URL with the given disposition. The transition specifies how this
97 // navigation should be recorded in the history system (for example, typed). 94 // navigation should be recorded in the history system (for example, typed).
98 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't 95 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't
99 // opened immediately. 96 // opened immediately.
100 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; 97 virtual WebContents* OpenURL(const OpenURLParams& params) = 0;
101 }; 98 };
102 99
103 } // namespace content 100 } // namespace content
104 101
105 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 102 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698