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

Unified Diff: chrome/browser/ui/browser_navigator.h

Issue 21378002: Support POST in browser navaigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: move PageNavigator Destructor body back Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.h
===================================================================
--- chrome/browser/ui/browser_navigator.h (revision 215511)
+++ chrome/browser/ui/browser_navigator.h (working copy)
@@ -7,6 +7,8 @@
#include <string>
+#include "base/memory/ref_counted.h"
+#include "base/memory/ref_counted_memory.h"
#include "chrome/browser/ui/host_desktop.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/global_request_id.h"
@@ -63,6 +65,15 @@
GURL url;
content::Referrer referrer;
+ // Indicates whether this navigation will be sent using POST.
+ // The POST method is limited support for basic POST data by leveraging
+ // NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST.
+ // It is not for things like file uploads.
+ bool uses_post;
+
+ // The post data when the navigation uses POST.
+ scoped_refptr<base::RefCountedMemory> browser_initiated_post_data;
+
// Extra headers to add to the request for this page. Headers are
// represented as "<name>: <value>" and separated by \r\n. The entire string
// is terminated by \r\n. May be empty if no extra headers are needed.
« no previous file with comments | « no previous file | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698