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

Side by Side Diff: content/public/browser/navigation_entry.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_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // what it's actually called. For example, if the user types "foo.com", that 116 // what it's actually called. For example, if the user types "foo.com", that
117 // may redirect somewhere arbitrary like "bar.com/foo", and we want to use 117 // may redirect somewhere arbitrary like "bar.com/foo", and we want to use
118 // the name that the user things of the site as having. 118 // the name that the user things of the site as having.
119 // 119 //
120 // This URL will be is_empty() if the URL was navigated to some other way. 120 // This URL will be is_empty() if the URL was navigated to some other way.
121 // Callers should fall back on using the regular or display URL in this case. 121 // Callers should fall back on using the regular or display URL in this case.
122 virtual const GURL& GetUserTypedURL() const = 0; 122 virtual const GURL& GetUserTypedURL() const = 0;
123 123
124 // Post data is form data that was posted to get to this page. The data will 124 // Post data is form data that was posted to get to this page. The data will
125 // have to be reposted to reload the page properly. This flag indicates 125 // have to be reposted to reload the page properly. This flag indicates
126 // whether the page had post data. 126 // whether the page had post data.
joth 2012/07/26 20:41:40 should this comment be updated as per the second p
boliu 2012/07/27 22:47:41 Done.
127 // 127 //
128 // The actual post data is stored in the content_state and is extracted by 128 // The actual post data is stored in the content_state and is extracted by
129 // WebKit to actually make the request. 129 // WebKit to actually make the request.
130 virtual void SetHasPostData(bool has_post_data) = 0; 130 virtual void SetHasPostData(bool has_post_data) = 0;
131 virtual bool GetHasPostData() const = 0; 131 virtual bool GetHasPostData() const = 0;
132 132
133 // The Post identifier associated with the page. 133 // The Post identifier associated with the page.
134 virtual void SetPostID(int64 post_id) = 0; 134 virtual void SetPostID(int64 post_id) = 0;
135 virtual int64 GetPostID() const = 0; 135 virtual int64 GetPostID() const = 0;
136 136
137 // The favicon data and tracking information. See content::FaviconStatus. 137 // The favicon data and tracking information. See content::FaviconStatus.
138 virtual const FaviconStatus& GetFavicon() const = 0; 138 virtual const FaviconStatus& GetFavicon() const = 0;
139 virtual FaviconStatus& GetFavicon() = 0; 139 virtual FaviconStatus& GetFavicon() = 0;
140 140
141 // All the SSL flags and state. See content::SSLStatus. 141 // All the SSL flags and state. See content::SSLStatus.
142 virtual const SSLStatus& GetSSL() const = 0; 142 virtual const SSLStatus& GetSSL() const = 0;
143 virtual SSLStatus& GetSSL() = 0; 143 virtual SSLStatus& GetSSL() = 0;
144 144
145 // Store the URL that caused this NavigationEntry to be created. 145 // Store the URL that caused this NavigationEntry to be created.
146 virtual void SetOriginalRequestURL(const GURL& original_url) = 0; 146 virtual void SetOriginalRequestURL(const GURL& original_url) = 0;
147 virtual const GURL& GetOriginalRequestURL() const = 0; 147 virtual const GURL& GetOriginalRequestURL() const = 0;
148 148
149 // Store whether or not we're overriding the user agent. 149 // Store whether or not we're overriding the user agent.
150 virtual void SetIsOverridingUserAgent(bool override) = 0; 150 virtual void SetIsOverridingUserAgent(bool override) = 0;
151 virtual bool GetIsOverridingUserAgent() const = 0; 151 virtual bool GetIsOverridingUserAgent() const = 0;
152
153 // Holds the raw post data of a browser initiated post request.
154 // It should be cleared when ContentState above is set for efficiency.
155 virtual void SetBrowserInitiatedPostData(const std::string& data) = 0;
joth 2012/07/26 20:41:40 Would it make sense to have this method automatica
boliu 2012/07/27 22:47:41 I don't think it should call SetHasPostData(true)
joth 2012/07/27 23:12:38 Makes sense.
156 virtual const std::string& GetBrowserInitiatedPostData() const = 0;
152 }; 157 };
153 158
154 } // namespace content 159 } // namespace content
155 160
156 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 161 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698