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

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: 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const FaviconStatus& GetFavicon() const OVERRIDE; 60 virtual const FaviconStatus& GetFavicon() const OVERRIDE;
61 virtual FaviconStatus& GetFavicon() OVERRIDE; 61 virtual FaviconStatus& GetFavicon() OVERRIDE;
62 virtual const SSLStatus& GetSSL() const OVERRIDE; 62 virtual const SSLStatus& GetSSL() const OVERRIDE;
63 virtual SSLStatus& GetSSL() OVERRIDE; 63 virtual SSLStatus& GetSSL() OVERRIDE;
64 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; 64 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE;
65 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; 65 virtual const GURL& GetOriginalRequestURL() const OVERRIDE;
66 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; 66 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE;
67 virtual bool GetIsOverridingUserAgent() const OVERRIDE; 67 virtual bool GetIsOverridingUserAgent() const OVERRIDE;
68 virtual void SetBrowserInitiatedPostData(const std::string& data) OVERRIDE;
69 virtual const std::string& GetBrowserInitiatedPostData() const OVERRIDE;
68 70
69 void set_unique_id(int unique_id) { 71 void set_unique_id(int unique_id) {
70 unique_id_ = unique_id; 72 unique_id_ = unique_id;
71 } 73 }
72 74
73 // The SiteInstance tells us how to share sub-processes. This is a reference 75 // The SiteInstance tells us how to share sub-processes. This is a reference
74 // counted pointer to a shared site instance. 76 // counted pointer to a shared site instance.
75 // 77 //
76 // Note that the SiteInstance should usually not be changed after it is set, 78 // Note that the SiteInstance should usually not be changed after it is set,
77 // but this may happen if the NavigationEntry was cloned and needs to use a 79 // but this may happen if the NavigationEntry was cloned and needs to use a
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 std::string content_state_; 179 std::string content_state_;
178 int32 page_id_; 180 int32 page_id_;
179 SSLStatus ssl_; 181 SSLStatus ssl_;
180 PageTransition transition_type_; 182 PageTransition transition_type_;
181 GURL user_typed_url_; 183 GURL user_typed_url_;
182 bool has_post_data_; 184 bool has_post_data_;
183 int64 post_id_; 185 int64 post_id_;
184 RestoreType restore_type_; 186 RestoreType restore_type_;
185 GURL original_request_url_; 187 GURL original_request_url_;
186 bool is_overriding_user_agent_; 188 bool is_overriding_user_agent_;
189 std::string browser_initiated_post_data_; // TODO(boliu): save in session
187 190
188 // This member is not persisted with sesssion restore. 191 // This member is not persisted with sesssion restore.
189 std::string extra_headers_; 192 std::string extra_headers_;
190 193
191 // Used for specifying base URL for pages loaded via data URLs. Not persisted. 194 // Used for specifying base URL for pages loaded via data URLs. Not persisted.
192 GURL base_url_for_data_url_; 195 GURL base_url_for_data_url_;
193 196
194 // Whether the entry, while loading, was created for a renderer-initiated 197 // Whether the entry, while loading, was created for a renderer-initiated
195 // navigation. This dictates whether the URL should be displayed before the 198 // navigation. This dictates whether the URL should be displayed before the
196 // navigation commits. It is cleared on commit and not persisted. 199 // navigation commits. It is cleared on commit and not persisted.
(...skipping 20 matching lines...) Expand all
217 // instance, instead of a new navigation. This value should not be persisted 220 // instance, instead of a new navigation. This value should not be persisted
218 // and is not needed after the entry commits. 221 // and is not needed after the entry commits.
219 bool is_cross_site_reload_; 222 bool is_cross_site_reload_;
220 223
221 // Copy and assignment is explicitly allowed for this class. 224 // Copy and assignment is explicitly allowed for this class.
222 }; 225 };
223 226
224 } // namespace content 227 } // namespace content
225 228
226 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 229 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698