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" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 virtual base::Time GetTimestamp() const OVERRIDE; | 77 virtual base::Time GetTimestamp() const OVERRIDE; |
78 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE; | 78 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE; |
79 virtual bool GetCanLoadLocalResources() const OVERRIDE; | 79 virtual bool GetCanLoadLocalResources() const OVERRIDE; |
80 virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE; | 80 virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE; |
81 virtual const std::string& GetFrameToNavigate() const OVERRIDE; | 81 virtual const std::string& GetFrameToNavigate() const OVERRIDE; |
82 virtual void SetExtraData(const std::string& key, | 82 virtual void SetExtraData(const std::string& key, |
83 const string16& data) OVERRIDE; | 83 const string16& data) OVERRIDE; |
84 virtual bool GetExtraData(const std::string& key, | 84 virtual bool GetExtraData(const std::string& key, |
85 string16* data) const OVERRIDE; | 85 string16* data) const OVERRIDE; |
86 virtual void ClearExtraData(const std::string& key) OVERRIDE; | 86 virtual void ClearExtraData(const std::string& key) OVERRIDE; |
87 | 87 |
Nicolas Zea
2013/08/15 18:25:40
remove newline
pval...(no longer on Chromium)
2013/08/20 15:28:10
Done.
| |
88 virtual void SetHttpStatusCode(int http_status_code) OVERRIDE; | |
89 virtual int GetHttpStatusCode() const OVERRIDE; | |
90 | |
88 void set_unique_id(int unique_id) { | 91 void set_unique_id(int unique_id) { |
89 unique_id_ = unique_id; | 92 unique_id_ = unique_id; |
90 } | 93 } |
91 | 94 |
92 // The SiteInstance tells us how to share sub-processes. This is a reference | 95 // The SiteInstance tells us how to share sub-processes. This is a reference |
93 // counted pointer to a shared site instance. | 96 // counted pointer to a shared site instance. |
94 // | 97 // |
95 // Note that the SiteInstance should usually not be changed after it is set, | 98 // Note that the SiteInstance should usually not be changed after it is set, |
96 // but this may happen if the NavigationEntry was cloned and needs to use a | 99 // but this may happen if the NavigationEntry was cloned and needs to use a |
97 // different SiteInstance. | 100 // different SiteInstance. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 int32 page_id_; | 227 int32 page_id_; |
225 SSLStatus ssl_; | 228 SSLStatus ssl_; |
226 PageTransition transition_type_; | 229 PageTransition transition_type_; |
227 GURL user_typed_url_; | 230 GURL user_typed_url_; |
228 bool has_post_data_; | 231 bool has_post_data_; |
229 int64 post_id_; | 232 int64 post_id_; |
230 RestoreType restore_type_; | 233 RestoreType restore_type_; |
231 GURL original_request_url_; | 234 GURL original_request_url_; |
232 bool is_overriding_user_agent_; | 235 bool is_overriding_user_agent_; |
233 base::Time timestamp_; | 236 base::Time timestamp_; |
237 int http_status_code_; | |
234 | 238 |
235 // This member is not persisted with session restore because it is transient. | 239 // This member is not persisted with session restore because it is transient. |
236 // If the post request succeeds, this field is cleared since the same | 240 // If the post request succeeds, this field is cleared since the same |
237 // information is stored in |content_state_| above. It is also only shallow | 241 // information is stored in |content_state_| above. It is also only shallow |
238 // copied with compiler provided copy constructor. | 242 // copied with compiler provided copy constructor. |
239 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; | 243 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; |
240 | 244 |
241 // This is also a transient member (i.e. is not persisted with session | 245 // This is also a transient member (i.e. is not persisted with session |
242 // restore). The screenshot of a page is taken when navigating away from the | 246 // restore). The screenshot of a page is taken when navigating away from the |
243 // page. This screenshot is displayed during an overscroll-navigation | 247 // page. This screenshot is displayed during an overscroll-navigation |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
304 // persisted, unless specific data is taken out/put back in at save/restore | 308 // persisted, unless specific data is taken out/put back in at save/restore |
305 // time (see TabNavigation for an example of this). | 309 // time (see TabNavigation for an example of this). |
306 std::map<std::string, string16> extra_data_; | 310 std::map<std::string, string16> extra_data_; |
307 | 311 |
308 // Copy and assignment is explicitly allowed for this class. | 312 // Copy and assignment is explicitly allowed for this class. |
309 }; | 313 }; |
310 | 314 |
311 } // namespace content | 315 } // namespace content |
312 | 316 |
313 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 317 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |