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

Unified Diff: content/browser/web_contents/navigation_entry_impl.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/browser/web_contents/navigation_entry_impl.h
diff --git a/content/browser/web_contents/navigation_entry_impl.h b/content/browser/web_contents/navigation_entry_impl.h
index c0aae0209fd30ef411edf23cfcee238d1e2e667c..41905a965e9e35335a339fde9c7bf0e816c9fddd 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -57,6 +57,10 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual bool GetHasPostData() const OVERRIDE;
virtual void SetPostID(int64 post_id) OVERRIDE;
virtual int64 GetPostID() const OVERRIDE;
+ virtual void SetBrowserInitiatedPostData(
+ scoped_refptr<base::RefCountedBytes> data) OVERRIDE;
+ virtual const scoped_refptr<base::RefCountedBytes>
+ GetBrowserInitiatedPostData() const OVERRIDE;
virtual const FaviconStatus& GetFavicon() const OVERRIDE;
virtual FaviconStatus& GetFavicon() OVERRIDE;
virtual const SSLStatus& GetSSL() const OVERRIDE;
@@ -185,7 +189,13 @@ class CONTENT_EXPORT NavigationEntryImpl
GURL original_request_url_;
bool is_overriding_user_agent_;
- // This member is not persisted with sesssion restore.
+ // This member is not persisted with session restore because it is transient.
+ // If the post request succeeds, this field is cleared since the same
+ // information is stored in |content_state_| above. It is also only shallow
+ // copied with compiler provided copy constructor.
+ scoped_refptr<base::RefCountedBytes> browser_initiated_post_data_;
+
+ // This member is not persisted with session restore.
std::string extra_headers_;
// Used for specifying base URL for pages loaded via data URLs. Not persisted.

Powered by Google App Engine
This is Rietveld 408576698