OLD | NEW |
---|---|
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" | |
10 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
11 #include "content/public/browser/favicon_status.h" | 10 #include "content/public/browser/favicon_status.h" |
12 #include "content/public/browser/global_request_id.h" | 11 #include "content/public/browser/global_request_id.h" |
13 #include "content/public/browser/navigation_entry.h" | 12 #include "content/public/browser/navigation_entry.h" |
14 #include "content/public/common/ssl_status.h" | 13 #include "content/public/common/ssl_status.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 | 16 |
18 class CONTENT_EXPORT NavigationEntryImpl | 17 class CONTENT_EXPORT NavigationEntryImpl |
19 : public NON_EXPORTED_BASE(NavigationEntry) { | 18 : public NON_EXPORTED_BASE(NavigationEntry) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 const std::string& languages) const OVERRIDE; | 50 const std::string& languages) const OVERRIDE; |
52 virtual bool IsViewSourceMode() const OVERRIDE; | 51 virtual bool IsViewSourceMode() const OVERRIDE; |
53 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; | 52 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; |
54 virtual PageTransition GetTransitionType() const OVERRIDE; | 53 virtual PageTransition GetTransitionType() const OVERRIDE; |
55 virtual const GURL& GetUserTypedURL() const OVERRIDE; | 54 virtual const GURL& GetUserTypedURL() const OVERRIDE; |
56 virtual void SetHasPostData(bool has_post_data) OVERRIDE; | 55 virtual void SetHasPostData(bool has_post_data) OVERRIDE; |
57 virtual bool GetHasPostData() const OVERRIDE; | 56 virtual bool GetHasPostData() const OVERRIDE; |
58 virtual void SetPostID(int64 post_id) OVERRIDE; | 57 virtual void SetPostID(int64 post_id) OVERRIDE; |
59 virtual int64 GetPostID() const OVERRIDE; | 58 virtual int64 GetPostID() const OVERRIDE; |
60 virtual void SetBrowserInitiatedPostData( | 59 virtual void SetBrowserInitiatedPostData( |
61 const base::RefCountedMemory* data) OVERRIDE; | 60 scoped_refptr<webkit_glue::ResourceRequestBody> data) OVERRIDE; |
62 virtual const base::RefCountedMemory* | 61 virtual const scoped_refptr<webkit_glue::ResourceRequestBody> |
63 GetBrowserInitiatedPostData() const OVERRIDE; | 62 GetBrowserInitiatedPostData() const OVERRIDE; |
64 virtual const FaviconStatus& GetFavicon() const OVERRIDE; | 63 virtual const FaviconStatus& GetFavicon() const OVERRIDE; |
65 virtual FaviconStatus& GetFavicon() OVERRIDE; | 64 virtual FaviconStatus& GetFavicon() OVERRIDE; |
66 virtual const SSLStatus& GetSSL() const OVERRIDE; | 65 virtual const SSLStatus& GetSSL() const OVERRIDE; |
67 virtual SSLStatus& GetSSL() OVERRIDE; | 66 virtual SSLStatus& GetSSL() OVERRIDE; |
68 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; | 67 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; |
69 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; | 68 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; |
70 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; | 69 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; |
71 virtual bool GetIsOverridingUserAgent() const OVERRIDE; | 70 virtual bool GetIsOverridingUserAgent() const OVERRIDE; |
72 virtual void SetTimestamp(base::Time timestamp) OVERRIDE; | 71 virtual void SetTimestamp(base::Time timestamp) OVERRIDE; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 int64 post_id_; | 192 int64 post_id_; |
194 RestoreType restore_type_; | 193 RestoreType restore_type_; |
195 GURL original_request_url_; | 194 GURL original_request_url_; |
196 bool is_overriding_user_agent_; | 195 bool is_overriding_user_agent_; |
197 base::Time timestamp_; | 196 base::Time timestamp_; |
198 | 197 |
199 // This member is not persisted with session restore because it is transient. | 198 // This member is not persisted with session restore because it is transient. |
200 // If the post request succeeds, this field is cleared since the same | 199 // If the post request succeeds, this field is cleared since the same |
201 // information is stored in |content_state_| above. It is also only shallow | 200 // information is stored in |content_state_| above. It is also only shallow |
202 // copied with compiler provided copy constructor. | 201 // copied with compiler provided copy constructor. |
203 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; | 202 scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data_; |
Charlie Reis
2012/11/20 05:46:03
I have some concerns about using a ResourceRequest
| |
204 | 203 |
205 // This member is not persisted with session restore. | 204 // This member is not persisted with session restore. |
206 std::string extra_headers_; | 205 std::string extra_headers_; |
207 | 206 |
208 // Used for specifying base URL for pages loaded via data URLs. Not persisted. | 207 // Used for specifying base URL for pages loaded via data URLs. Not persisted. |
209 GURL base_url_for_data_url_; | 208 GURL base_url_for_data_url_; |
210 | 209 |
211 // Whether the entry, while loading, was created for a renderer-initiated | 210 // Whether the entry, while loading, was created for a renderer-initiated |
212 // navigation. This dictates whether the URL should be displayed before the | 211 // navigation. This dictates whether the URL should be displayed before the |
213 // navigation commits. It is cleared on commit and not persisted. | 212 // navigation commits. It is cleared on commit and not persisted. |
(...skipping 28 matching lines...) Expand all Loading... | |
242 // Set when this entry should be able to access local file:// resources. This | 241 // Set when this entry should be able to access local file:// resources. This |
243 // value is not needed after the entry commits and is not persisted. | 242 // value is not needed after the entry commits and is not persisted. |
244 bool can_load_local_resources_; | 243 bool can_load_local_resources_; |
245 | 244 |
246 // Copy and assignment is explicitly allowed for this class. | 245 // Copy and assignment is explicitly allowed for this class. |
247 }; | 246 }; |
248 | 247 |
249 } // namespace content | 248 } // namespace content |
250 | 249 |
251 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 250 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |