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

Side by Side 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: Fixes according to comments. Improve render_view test. Created 8 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 unified diff | Download patch
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 CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual const string16& GetTitleForDisplay( 50 virtual const string16& GetTitleForDisplay(
51 const std::string& languages) const OVERRIDE; 51 const std::string& languages) const OVERRIDE;
52 virtual bool IsViewSourceMode() const OVERRIDE; 52 virtual bool IsViewSourceMode() const OVERRIDE;
53 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; 53 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE;
54 virtual PageTransition GetTransitionType() const OVERRIDE; 54 virtual PageTransition GetTransitionType() const OVERRIDE;
55 virtual const GURL& GetUserTypedURL() const OVERRIDE; 55 virtual const GURL& GetUserTypedURL() const OVERRIDE;
56 virtual void SetHasPostData(bool has_post_data) OVERRIDE; 56 virtual void SetHasPostData(bool has_post_data) OVERRIDE;
57 virtual bool GetHasPostData() const OVERRIDE; 57 virtual bool GetHasPostData() const OVERRIDE;
58 virtual void SetPostID(int64 post_id) OVERRIDE; 58 virtual void SetPostID(int64 post_id) OVERRIDE;
59 virtual int64 GetPostID() const OVERRIDE; 59 virtual int64 GetPostID() const OVERRIDE;
60 virtual void SetBrowserInitiatedPostData(
61 const std::vector<char>& data) OVERRIDE;
62 virtual const std::vector<char>& GetBrowserInitiatedPostData() const OVERRIDE;
60 virtual const FaviconStatus& GetFavicon() const OVERRIDE; 63 virtual const FaviconStatus& GetFavicon() const OVERRIDE;
61 virtual FaviconStatus& GetFavicon() OVERRIDE; 64 virtual FaviconStatus& GetFavicon() OVERRIDE;
62 virtual const SSLStatus& GetSSL() const OVERRIDE; 65 virtual const SSLStatus& GetSSL() const OVERRIDE;
63 virtual SSLStatus& GetSSL() OVERRIDE; 66 virtual SSLStatus& GetSSL() OVERRIDE;
64 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; 67 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE;
65 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; 68 virtual const GURL& GetOriginalRequestURL() const OVERRIDE;
66 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; 69 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE;
67 virtual bool GetIsOverridingUserAgent() const OVERRIDE; 70 virtual bool GetIsOverridingUserAgent() const OVERRIDE;
68 71
69 void set_unique_id(int unique_id) { 72 void set_unique_id(int unique_id) {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 int32 page_id_; 181 int32 page_id_;
179 SSLStatus ssl_; 182 SSLStatus ssl_;
180 PageTransition transition_type_; 183 PageTransition transition_type_;
181 GURL user_typed_url_; 184 GURL user_typed_url_;
182 bool has_post_data_; 185 bool has_post_data_;
183 int64 post_id_; 186 int64 post_id_;
184 RestoreType restore_type_; 187 RestoreType restore_type_;
185 GURL original_request_url_; 188 GURL original_request_url_;
186 bool is_overriding_user_agent_; 189 bool is_overriding_user_agent_;
187 190
188 // This member is not persisted with sesssion restore. 191 // This member is not persisted with session restore because it is transient.
192 // If the post request succeeds, this field is cleared since the same
193 // information is stored in |content_state_| above.
194 std::vector<char> browser_initiated_post_data_;
195
196 // This member is not persisted with session restore.
189 std::string extra_headers_; 197 std::string extra_headers_;
190 198
191 // Used for specifying base URL for pages loaded via data URLs. Not persisted. 199 // Used for specifying base URL for pages loaded via data URLs. Not persisted.
192 GURL base_url_for_data_url_; 200 GURL base_url_for_data_url_;
193 201
194 // Whether the entry, while loading, was created for a renderer-initiated 202 // Whether the entry, while loading, was created for a renderer-initiated
195 // navigation. This dictates whether the URL should be displayed before the 203 // navigation. This dictates whether the URL should be displayed before the
196 // navigation commits. It is cleared on commit and not persisted. 204 // navigation commits. It is cleared on commit and not persisted.
197 bool is_renderer_initiated_; 205 bool is_renderer_initiated_;
198 206
(...skipping 18 matching lines...) Expand all
217 // instance, instead of a new navigation. This value should not be persisted 225 // instance, instead of a new navigation. This value should not be persisted
218 // and is not needed after the entry commits. 226 // and is not needed after the entry commits.
219 bool is_cross_site_reload_; 227 bool is_cross_site_reload_;
220 228
221 // Copy and assignment is explicitly allowed for this class. 229 // Copy and assignment is explicitly allowed for this class.
222 }; 230 };
223 231
224 } // namespace content 232 } // namespace content
225 233
226 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 234 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698