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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 int64 post_id_; | 193 int64 post_id_; |
195 RestoreType restore_type_; | 194 RestoreType restore_type_; |
196 GURL original_request_url_; | 195 GURL original_request_url_; |
197 bool is_overriding_user_agent_; | 196 bool is_overriding_user_agent_; |
198 base::Time timestamp_; | 197 base::Time timestamp_; |
199 | 198 |
200 // This member is not persisted with session restore because it is transient. | 199 // This member is not persisted with session restore because it is transient. |
201 // If the post request succeeds, this field is cleared since the same | 200 // If the post request succeeds, this field is cleared since the same |
202 // information is stored in |content_state_| above. It is also only shallow | 201 // information is stored in |content_state_| above. It is also only shallow |
203 // copied with compiler provided copy constructor. | 202 // copied with compiler provided copy constructor. |
204 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; | 203 scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data_; |
205 | 204 |
206 // This member is not persisted with session restore. | 205 // This member is not persisted with session restore. |
207 std::string extra_headers_; | 206 std::string extra_headers_; |
208 | 207 |
209 // Used for specifying base URL for pages loaded via data URLs. Only used and | 208 // Used for specifying base URL for pages loaded via data URLs. Only used and |
210 // persisted by Android WebView. | 209 // persisted by Android WebView. |
211 GURL base_url_for_data_url_; | 210 GURL base_url_for_data_url_; |
212 | 211 |
213 // Whether the entry, while loading, was created for a renderer-initiated | 212 // Whether the entry, while loading, was created for a renderer-initiated |
214 // navigation. This dictates whether the URL should be displayed before the | 213 // navigation. This dictates whether the URL should be displayed before the |
(...skipping 29 matching lines...) Expand all Loading... |
244 // Set when this entry should be able to access local file:// resources. This | 243 // Set when this entry should be able to access local file:// resources. This |
245 // value is not needed after the entry commits and is not persisted. | 244 // value is not needed after the entry commits and is not persisted. |
246 bool can_load_local_resources_; | 245 bool can_load_local_resources_; |
247 | 246 |
248 // Copy and assignment is explicitly allowed for this class. | 247 // Copy and assignment is explicitly allowed for this class. |
249 }; | 248 }; |
250 | 249 |
251 } // namespace content | 250 } // namespace content |
252 | 251 |
253 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 252 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |