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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 int64 post_id_; | 191 int64 post_id_; |
193 RestoreType restore_type_; | 192 RestoreType restore_type_; |
194 GURL original_request_url_; | 193 GURL original_request_url_; |
195 bool is_overriding_user_agent_; | 194 bool is_overriding_user_agent_; |
196 base::Time timestamp_; | 195 base::Time timestamp_; |
197 | 196 |
198 // This member is not persisted with session restore because it is transient. | 197 // This member is not persisted with session restore because it is transient. |
199 // If the post request succeeds, this field is cleared since the same | 198 // If the post request succeeds, this field is cleared since the same |
200 // information is stored in |content_state_| above. It is also only shallow | 199 // information is stored in |content_state_| above. It is also only shallow |
201 // copied with compiler provided copy constructor. | 200 // copied with compiler provided copy constructor. |
202 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; | 201 scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data_; |
irobert
2012/11/09 19:07:57
We decide not to use base::RefCountedMemory* anymo
| |
203 | 202 |
204 // This member is not persisted with session restore. | 203 // This member is not persisted with session restore. |
205 std::string extra_headers_; | 204 std::string extra_headers_; |
206 | 205 |
207 // Used for specifying base URL for pages loaded via data URLs. Not persisted. | 206 // Used for specifying base URL for pages loaded via data URLs. Not persisted. |
208 GURL base_url_for_data_url_; | 207 GURL base_url_for_data_url_; |
209 | 208 |
210 // Whether the entry, while loading, was created for a renderer-initiated | 209 // Whether the entry, while loading, was created for a renderer-initiated |
211 // navigation. This dictates whether the URL should be displayed before the | 210 // navigation. This dictates whether the URL should be displayed before the |
212 // navigation commits. It is cleared on commit and not persisted. | 211 // navigation commits. It is cleared on commit and not persisted. |
(...skipping 24 matching lines...) Expand all Loading... | |
237 // Set when this entry should be able to access local file:// resources. This | 236 // Set when this entry should be able to access local file:// resources. This |
238 // value is not needed after the entry commits and is not persisted. | 237 // value is not needed after the entry commits and is not persisted. |
239 bool can_load_local_resources_; | 238 bool can_load_local_resources_; |
240 | 239 |
241 // Copy and assignment is explicitly allowed for this class. | 240 // Copy and assignment is explicitly allowed for this class. |
242 }; | 241 }; |
243 | 242 |
244 } // namespace content | 243 } // namespace content |
245 | 244 |
246 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 245 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |