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

Unified Diff: content/public/browser/android/navigation_controller_webview.h

Issue 10829044: Implement NavigationControllerWebView.PostURL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits. Use RefCountedBytes. Created 8 years, 5 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
Index: content/public/browser/android/navigation_controller_webview.h
diff --git a/content/public/browser/android/navigation_controller_webview.h b/content/public/browser/android/navigation_controller_webview.h
index 79c784dcd7a2947faeeae7f104374eccae27aba9..7692d2523d0efd4fda06205490a5febfdc14f2bc 100644
--- a/content/public/browser/android/navigation_controller_webview.h
+++ b/content/public/browser/android/navigation_controller_webview.h
@@ -5,6 +5,10 @@
#ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
#define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
+#include <vector>
joth 2012/07/30 19:10:18 not needed
boliu 2012/07/30 21:53:45 Done.
+
+#include "base/memory/ref_counted_memory.h"
+
class GURL;
namespace content {
@@ -27,6 +31,12 @@ class NavigationControllerWebView {
const GURL& base_url,
const GURL& history_url,
bool is_overriding_user_agent) = 0;
+
+ // Used to directly send a http post request with a raw http body provided.
+ virtual void PostURL(const GURL& url,
+ const content::Referrer& referrer,
+ const scoped_refptr<base::RefCountedBytes> http_body,
joth 2012/07/30 19:10:18 if we want to use refcountedXxx at all, it should
boliu 2012/07/30 21:53:45 Switch to const& here since it's an input as per t
+ bool is_overriding_user_agent) = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698