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" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
11 #include "content/public/browser/favicon_status.h" | 11 #include "content/public/browser/favicon_status.h" |
12 #include "content/public/browser/global_request_id.h" | 12 #include "content/public/browser/global_request_id.h" |
13 #include "content/public/browser/navigation_entry.h" | 13 #include "content/public/browser/navigation_entry.h" |
| 14 #include "content/public/common/page_state.h" |
14 #include "content/public/common/ssl_status.h" | 15 #include "content/public/common/ssl_status.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 class CONTENT_EXPORT NavigationEntryImpl | 19 class CONTENT_EXPORT NavigationEntryImpl |
19 : public NON_EXPORTED_BASE(NavigationEntry) { | 20 : public NON_EXPORTED_BASE(NavigationEntry) { |
20 public: | 21 public: |
21 static NavigationEntryImpl* FromNavigationEntry(NavigationEntry* entry); | 22 static NavigationEntryImpl* FromNavigationEntry(NavigationEntry* entry); |
22 | 23 |
23 // The value of bindings() before it is set during commit. | 24 // The value of bindings() before it is set during commit. |
(...skipping 15 matching lines...) Expand all Loading... |
39 virtual void SetURL(const GURL& url) OVERRIDE; | 40 virtual void SetURL(const GURL& url) OVERRIDE; |
40 virtual const GURL& GetURL() const OVERRIDE; | 41 virtual const GURL& GetURL() const OVERRIDE; |
41 virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE; | 42 virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE; |
42 virtual const GURL& GetBaseURLForDataURL() const OVERRIDE; | 43 virtual const GURL& GetBaseURLForDataURL() const OVERRIDE; |
43 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; | 44 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; |
44 virtual const Referrer& GetReferrer() const OVERRIDE; | 45 virtual const Referrer& GetReferrer() const OVERRIDE; |
45 virtual void SetVirtualURL(const GURL& url) OVERRIDE; | 46 virtual void SetVirtualURL(const GURL& url) OVERRIDE; |
46 virtual const GURL& GetVirtualURL() const OVERRIDE; | 47 virtual const GURL& GetVirtualURL() const OVERRIDE; |
47 virtual void SetTitle(const string16& title) OVERRIDE; | 48 virtual void SetTitle(const string16& title) OVERRIDE; |
48 virtual const string16& GetTitle() const OVERRIDE; | 49 virtual const string16& GetTitle() const OVERRIDE; |
49 virtual void SetContentState(const std::string& state) OVERRIDE; | 50 virtual void SetPageState(const PageState& state) OVERRIDE; |
50 virtual const std::string& GetContentState() const OVERRIDE; | 51 virtual const PageState& GetPageState() const OVERRIDE; |
51 virtual void SetPageID(int page_id) OVERRIDE; | 52 virtual void SetPageID(int page_id) OVERRIDE; |
52 virtual int32 GetPageID() const OVERRIDE; | 53 virtual int32 GetPageID() const OVERRIDE; |
53 virtual const string16& GetTitleForDisplay( | 54 virtual const string16& GetTitleForDisplay( |
54 const std::string& languages) const OVERRIDE; | 55 const std::string& languages) const OVERRIDE; |
55 virtual bool IsViewSourceMode() const OVERRIDE; | 56 virtual bool IsViewSourceMode() const OVERRIDE; |
56 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; | 57 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; |
57 virtual PageTransition GetTransitionType() const OVERRIDE; | 58 virtual PageTransition GetTransitionType() const OVERRIDE; |
58 virtual const GURL& GetUserTypedURL() const OVERRIDE; | 59 virtual const GURL& GetUserTypedURL() const OVERRIDE; |
59 virtual void SetHasPostData(bool has_post_data) OVERRIDE; | 60 virtual void SetHasPostData(bool has_post_data) OVERRIDE; |
60 virtual bool GetHasPostData() const OVERRIDE; | 61 virtual bool GetHasPostData() const OVERRIDE; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 scoped_refptr<SiteInstanceImpl> site_instance_; | 213 scoped_refptr<SiteInstanceImpl> site_instance_; |
213 // TODO(creis): Persist bindings_. http://crbug.com/173672. | 214 // TODO(creis): Persist bindings_. http://crbug.com/173672. |
214 int bindings_; | 215 int bindings_; |
215 PageType page_type_; | 216 PageType page_type_; |
216 GURL url_; | 217 GURL url_; |
217 Referrer referrer_; | 218 Referrer referrer_; |
218 GURL virtual_url_; | 219 GURL virtual_url_; |
219 bool update_virtual_url_with_url_; | 220 bool update_virtual_url_with_url_; |
220 string16 title_; | 221 string16 title_; |
221 FaviconStatus favicon_; | 222 FaviconStatus favicon_; |
222 std::string content_state_; | 223 PageState page_state_; |
223 int32 page_id_; | 224 int32 page_id_; |
224 SSLStatus ssl_; | 225 SSLStatus ssl_; |
225 PageTransition transition_type_; | 226 PageTransition transition_type_; |
226 GURL user_typed_url_; | 227 GURL user_typed_url_; |
227 bool has_post_data_; | 228 bool has_post_data_; |
228 int64 post_id_; | 229 int64 post_id_; |
229 RestoreType restore_type_; | 230 RestoreType restore_type_; |
230 GURL original_request_url_; | 231 GURL original_request_url_; |
231 bool is_overriding_user_agent_; | 232 bool is_overriding_user_agent_; |
232 base::Time timestamp_; | 233 base::Time timestamp_; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // persisted, unless specific data is taken out/put back in at save/restore | 304 // persisted, unless specific data is taken out/put back in at save/restore |
304 // time (see TabNavigation for an example of this). | 305 // time (see TabNavigation for an example of this). |
305 std::map<std::string, string16> extra_data_; | 306 std::map<std::string, string16> extra_data_; |
306 | 307 |
307 // Copy and assignment is explicitly allowed for this class. | 308 // Copy and assignment is explicitly allowed for this class. |
308 }; | 309 }; |
309 | 310 |
310 } // namespace content | 311 } // namespace content |
311 | 312 |
312 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 313 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |