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

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: 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_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 #include <vector>
9 10
10 #include "base/string16.h" 11 #include "base/string16.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "content/public/common/page_transition_types.h" 13 #include "content/public/common/page_transition_types.h"
13 #include "content/public/common/page_type.h" 14 #include "content/public/common/page_type.h"
14 #include "content/public/common/referrer.h" 15 #include "content/public/common/referrer.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace content { 19 namespace content {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // the name that the user things of the site as having. 119 // the name that the user things of the site as having.
119 // 120 //
120 // This URL will be is_empty() if the URL was navigated to some other way. 121 // 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. 122 // Callers should fall back on using the regular or display URL in this case.
122 virtual const GURL& GetUserTypedURL() const = 0; 123 virtual const GURL& GetUserTypedURL() const = 0;
123 124
124 // Post data is form data that was posted to get to this page. The data will 125 // 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 126 // have to be reposted to reload the page properly. This flag indicates
126 // whether the page had post data. 127 // whether the page had post data.
127 // 128 //
128 // The actual post data is stored in the content_state and is extracted by 129 // The actual post data is stored either in
129 // WebKit to actually make the request. 130 // 1) browser_initiated_post_data when a new post data request is started.
131 // 2) content_state when a post request has started and is extracted by
132 // WebKit to actually make the request.
130 virtual void SetHasPostData(bool has_post_data) = 0; 133 virtual void SetHasPostData(bool has_post_data) = 0;
131 virtual bool GetHasPostData() const = 0; 134 virtual bool GetHasPostData() const = 0;
132 135
133 // The Post identifier associated with the page. 136 // The Post identifier associated with the page.
134 virtual void SetPostID(int64 post_id) = 0; 137 virtual void SetPostID(int64 post_id) = 0;
135 virtual int64 GetPostID() const = 0; 138 virtual int64 GetPostID() const = 0;
136 139
140 // Holds the raw post data of a browser initiated post request.
141 // For efficiency, this should be cleared when content_state is populated
142 // since the data is duplicated. Note this is not persisted in session
143 // restore.
144 virtual void SetBrowserInitiatedPostData(const std::vector<char>& data) = 0;
145 virtual const std::vector<char>& GetBrowserInitiatedPostData() const = 0;
joth 2012/07/27 23:12:38 Hmmm rather than pull in 'vector' another option w
boliu 2012/07/27 23:17:36 Does RefCountedMemory work with IPC? This data cro
jam 2012/07/27 23:36:15 no. you can send shared memory though. who genera
146
137 // The favicon data and tracking information. See content::FaviconStatus. 147 // The favicon data and tracking information. See content::FaviconStatus.
138 virtual const FaviconStatus& GetFavicon() const = 0; 148 virtual const FaviconStatus& GetFavicon() const = 0;
139 virtual FaviconStatus& GetFavicon() = 0; 149 virtual FaviconStatus& GetFavicon() = 0;
140 150
141 // All the SSL flags and state. See content::SSLStatus. 151 // All the SSL flags and state. See content::SSLStatus.
142 virtual const SSLStatus& GetSSL() const = 0; 152 virtual const SSLStatus& GetSSL() const = 0;
143 virtual SSLStatus& GetSSL() = 0; 153 virtual SSLStatus& GetSSL() = 0;
144 154
145 // Store the URL that caused this NavigationEntry to be created. 155 // Store the URL that caused this NavigationEntry to be created.
146 virtual void SetOriginalRequestURL(const GURL& original_url) = 0; 156 virtual void SetOriginalRequestURL(const GURL& original_url) = 0;
147 virtual const GURL& GetOriginalRequestURL() const = 0; 157 virtual const GURL& GetOriginalRequestURL() const = 0;
148 158
149 // Store whether or not we're overriding the user agent. 159 // Store whether or not we're overriding the user agent.
150 virtual void SetIsOverridingUserAgent(bool override) = 0; 160 virtual void SetIsOverridingUserAgent(bool override) = 0;
151 virtual bool GetIsOverridingUserAgent() const = 0; 161 virtual bool GetIsOverridingUserAgent() const = 0;
152 }; 162 };
153 163
154 } // namespace content 164 } // namespace content
155 165
156 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 166 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698