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_TAB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void SetPageID(int page_id) OVERRIDE; | 47 virtual void SetPageID(int page_id) OVERRIDE; |
48 virtual int32 GetPageID() const OVERRIDE; | 48 virtual int32 GetPageID() const OVERRIDE; |
49 virtual const string16& GetTitleForDisplay( | 49 virtual const string16& GetTitleForDisplay( |
50 const std::string& languages) const OVERRIDE; | 50 const std::string& languages) const OVERRIDE; |
51 virtual bool IsViewSourceMode() const OVERRIDE; | 51 virtual bool IsViewSourceMode() const OVERRIDE; |
52 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; | 52 virtual void SetTransitionType(PageTransition transition_type) OVERRIDE; |
53 virtual PageTransition GetTransitionType() const OVERRIDE; | 53 virtual PageTransition GetTransitionType() const OVERRIDE; |
54 virtual const GURL& GetUserTypedURL() const OVERRIDE; | 54 virtual const GURL& GetUserTypedURL() const OVERRIDE; |
55 virtual void SetHasPostData(bool has_post_data) OVERRIDE; | 55 virtual void SetHasPostData(bool has_post_data) OVERRIDE; |
56 virtual bool GetHasPostData() const OVERRIDE; | 56 virtual bool GetHasPostData() const OVERRIDE; |
| 57 virtual void SetPostID(int64 post_id) OVERRIDE; |
| 58 virtual int64 GetPostID() const OVERRIDE; |
57 virtual const FaviconStatus& GetFavicon() const OVERRIDE; | 59 virtual const FaviconStatus& GetFavicon() const OVERRIDE; |
58 virtual FaviconStatus& GetFavicon() OVERRIDE; | 60 virtual FaviconStatus& GetFavicon() OVERRIDE; |
59 virtual const SSLStatus& GetSSL() const OVERRIDE; | 61 virtual const SSLStatus& GetSSL() const OVERRIDE; |
60 virtual SSLStatus& GetSSL() OVERRIDE; | 62 virtual SSLStatus& GetSSL() OVERRIDE; |
61 | 63 |
62 void set_unique_id(int unique_id) { | 64 void set_unique_id(int unique_id) { |
63 unique_id_ = unique_id; | 65 unique_id_ = unique_id; |
64 } | 66 } |
65 | 67 |
66 // The SiteInstance tells us how to share sub-processes when the tab type is | 68 // The SiteInstance tells us how to share sub-processes when the tab type is |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 GURL virtual_url_; | 169 GURL virtual_url_; |
168 bool update_virtual_url_with_url_; | 170 bool update_virtual_url_with_url_; |
169 string16 title_; | 171 string16 title_; |
170 FaviconStatus favicon_; | 172 FaviconStatus favicon_; |
171 std::string content_state_; | 173 std::string content_state_; |
172 int32 page_id_; | 174 int32 page_id_; |
173 SSLStatus ssl_; | 175 SSLStatus ssl_; |
174 PageTransition transition_type_; | 176 PageTransition transition_type_; |
175 GURL user_typed_url_; | 177 GURL user_typed_url_; |
176 bool has_post_data_; | 178 bool has_post_data_; |
| 179 int64 post_id_; |
177 RestoreType restore_type_; | 180 RestoreType restore_type_; |
178 | 181 |
179 // This member is not persisted with sesssion restore. | 182 // This member is not persisted with sesssion restore. |
180 std::string extra_headers_; | 183 std::string extra_headers_; |
181 | 184 |
182 // Whether the entry, while loading, was created for a renderer-initiated | 185 // Whether the entry, while loading, was created for a renderer-initiated |
183 // navigation. This dictates whether the URL should be displayed before the | 186 // navigation. This dictates whether the URL should be displayed before the |
184 // navigation commits. It is cleared on commit and not persisted. | 187 // navigation commits. It is cleared on commit and not persisted. |
185 bool is_renderer_initiated_; | 188 bool is_renderer_initiated_; |
186 | 189 |
(...skipping 18 matching lines...) Expand all Loading... |
205 // instance, instead of a new navigation. This value should not be persisted | 208 // instance, instead of a new navigation. This value should not be persisted |
206 // and is not needed after the entry commits. | 209 // and is not needed after the entry commits. |
207 bool is_cross_site_reload_; | 210 bool is_cross_site_reload_; |
208 | 211 |
209 // Copy and assignment is explicitly allowed for this class. | 212 // Copy and assignment is explicitly allowed for this class. |
210 }; | 213 }; |
211 | 214 |
212 } // namespace content | 215 } // namespace content |
213 | 216 |
214 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 217 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |