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

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: Fix nits. Use RefCountedBytes. 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 scoped_refptr<base::RefCountedBytes> data) OVERRIDE;
62 virtual const scoped_refptr<base::RefCountedBytes>
63 GetBrowserInitiatedPostData() const OVERRIDE;
60 virtual const FaviconStatus& GetFavicon() const OVERRIDE; 64 virtual const FaviconStatus& GetFavicon() const OVERRIDE;
61 virtual FaviconStatus& GetFavicon() OVERRIDE; 65 virtual FaviconStatus& GetFavicon() OVERRIDE;
62 virtual const SSLStatus& GetSSL() const OVERRIDE; 66 virtual const SSLStatus& GetSSL() const OVERRIDE;
63 virtual SSLStatus& GetSSL() OVERRIDE; 67 virtual SSLStatus& GetSSL() OVERRIDE;
64 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; 68 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE;
65 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; 69 virtual const GURL& GetOriginalRequestURL() const OVERRIDE;
66 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; 70 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE;
67 virtual bool GetIsOverridingUserAgent() const OVERRIDE; 71 virtual bool GetIsOverridingUserAgent() const OVERRIDE;
68 72
69 void set_unique_id(int unique_id) { 73 void set_unique_id(int unique_id) {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 int32 page_id_; 182 int32 page_id_;
179 SSLStatus ssl_; 183 SSLStatus ssl_;
180 PageTransition transition_type_; 184 PageTransition transition_type_;
181 GURL user_typed_url_; 185 GURL user_typed_url_;
182 bool has_post_data_; 186 bool has_post_data_;
183 int64 post_id_; 187 int64 post_id_;
184 RestoreType restore_type_; 188 RestoreType restore_type_;
185 GURL original_request_url_; 189 GURL original_request_url_;
186 bool is_overriding_user_agent_; 190 bool is_overriding_user_agent_;
187 191
188 // This member is not persisted with sesssion restore. 192 // This member is not persisted with session restore because it is transient.
193 // If the post request succeeds, this field is cleared since the same
194 // information is stored in |content_state_| above. It is also only shallow
195 // copied with compiler provided copy constructor.
196 scoped_refptr<base::RefCountedBytes> browser_initiated_post_data_;
197
198 // This member is not persisted with session restore.
189 std::string extra_headers_; 199 std::string extra_headers_;
190 200
191 // Used for specifying base URL for pages loaded via data URLs. Not persisted. 201 // Used for specifying base URL for pages loaded via data URLs. Not persisted.
192 GURL base_url_for_data_url_; 202 GURL base_url_for_data_url_;
193 203
194 // Whether the entry, while loading, was created for a renderer-initiated 204 // Whether the entry, while loading, was created for a renderer-initiated
195 // navigation. This dictates whether the URL should be displayed before the 205 // navigation. This dictates whether the URL should be displayed before the
196 // navigation commits. It is cleared on commit and not persisted. 206 // navigation commits. It is cleared on commit and not persisted.
197 bool is_renderer_initiated_; 207 bool is_renderer_initiated_;
198 208
(...skipping 18 matching lines...) Expand all
217 // instance, instead of a new navigation. This value should not be persisted 227 // instance, instead of a new navigation. This value should not be persisted
218 // and is not needed after the entry commits. 228 // and is not needed after the entry commits.
219 bool is_cross_site_reload_; 229 bool is_cross_site_reload_;
220 230
221 // Copy and assignment is explicitly allowed for this class. 231 // Copy and assignment is explicitly allowed for this class.
222 }; 232 };
223 233
224 } // namespace content 234 } // namespace content
225 235
226 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 236 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698