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

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: NavigationEntry: clarify comments, return raw pointer 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/memory/ref_counted_memory.h"
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 {
19 20
(...skipping 98 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.
143 // Note, this field:
144 // 1) is not persisted in session restore.
145 // 2) is shallow copied with the static copy Create method above.
146 // 3) may be NULL so check before use.
147 virtual void SetBrowserInitiatedPostData(
148 const base::RefCountedMemory* data) = 0;
149 virtual const base::RefCountedMemory* GetBrowserInitiatedPostData() const = 0;
boliu 2012/07/31 00:05:11 Per discussion with joth, changed to return a raw
150
137 // The favicon data and tracking information. See content::FaviconStatus. 151 // The favicon data and tracking information. See content::FaviconStatus.
138 virtual const FaviconStatus& GetFavicon() const = 0; 152 virtual const FaviconStatus& GetFavicon() const = 0;
139 virtual FaviconStatus& GetFavicon() = 0; 153 virtual FaviconStatus& GetFavicon() = 0;
140 154
141 // All the SSL flags and state. See content::SSLStatus. 155 // All the SSL flags and state. See content::SSLStatus.
142 virtual const SSLStatus& GetSSL() const = 0; 156 virtual const SSLStatus& GetSSL() const = 0;
143 virtual SSLStatus& GetSSL() = 0; 157 virtual SSLStatus& GetSSL() = 0;
144 158
145 // Store the URL that caused this NavigationEntry to be created. 159 // Store the URL that caused this NavigationEntry to be created.
146 virtual void SetOriginalRequestURL(const GURL& original_url) = 0; 160 virtual void SetOriginalRequestURL(const GURL& original_url) = 0;
147 virtual const GURL& GetOriginalRequestURL() const = 0; 161 virtual const GURL& GetOriginalRequestURL() const = 0;
148 162
149 // Store whether or not we're overriding the user agent. 163 // Store whether or not we're overriding the user agent.
150 virtual void SetIsOverridingUserAgent(bool override) = 0; 164 virtual void SetIsOverridingUserAgent(bool override) = 0;
151 virtual bool GetIsOverridingUserAgent() const = 0; 165 virtual bool GetIsOverridingUserAgent() const = 0;
152 }; 166 };
153 167
154 } // namespace content 168 } // namespace content
155 169
156 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 170 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/navigation_controller_webview.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698