| 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 virtual void SetHttpStatusCode(int http_status_code) OVERRIDE; |
| 88 virtual int GetHttpStatusCode() const OVERRIDE; |
| 87 | 89 |
| 88 void set_unique_id(int unique_id) { | 90 void set_unique_id(int unique_id) { |
| 89 unique_id_ = unique_id; | 91 unique_id_ = unique_id; |
| 90 } | 92 } |
| 91 | 93 |
| 92 // The SiteInstance tells us how to share sub-processes. This is a reference | 94 // The SiteInstance tells us how to share sub-processes. This is a reference |
| 93 // counted pointer to a shared site instance. | 95 // counted pointer to a shared site instance. |
| 94 // | 96 // |
| 95 // Note that the SiteInstance should usually not be changed after it is set, | 97 // 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 | 98 // but this may happen if the NavigationEntry was cloned and needs to use a |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 int32 page_id_; | 226 int32 page_id_; |
| 225 SSLStatus ssl_; | 227 SSLStatus ssl_; |
| 226 PageTransition transition_type_; | 228 PageTransition transition_type_; |
| 227 GURL user_typed_url_; | 229 GURL user_typed_url_; |
| 228 bool has_post_data_; | 230 bool has_post_data_; |
| 229 int64 post_id_; | 231 int64 post_id_; |
| 230 RestoreType restore_type_; | 232 RestoreType restore_type_; |
| 231 GURL original_request_url_; | 233 GURL original_request_url_; |
| 232 bool is_overriding_user_agent_; | 234 bool is_overriding_user_agent_; |
| 233 base::Time timestamp_; | 235 base::Time timestamp_; |
| 236 int http_status_code_; |
| 234 | 237 |
| 235 // This member is not persisted with session restore because it is transient. | 238 // 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 | 239 // 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 | 240 // information is stored in |content_state_| above. It is also only shallow |
| 238 // copied with compiler provided copy constructor. | 241 // copied with compiler provided copy constructor. |
| 239 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; | 242 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; |
| 240 | 243 |
| 241 // This is also a transient member (i.e. is not persisted with session | 244 // 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 | 245 // restore). The screenshot of a page is taken when navigating away from the |
| 243 // page. This screenshot is displayed during an overscroll-navigation | 246 // 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 | 307 // persisted, unless specific data is taken out/put back in at save/restore |
| 305 // time (see TabNavigation for an example of this). | 308 // time (see TabNavigation for an example of this). |
| 306 std::map<std::string, string16> extra_data_; | 309 std::map<std::string, string16> extra_data_; |
| 307 | 310 |
| 308 // Copy and assignment is explicitly allowed for this class. | 311 // Copy and assignment is explicitly allowed for this class. |
| 309 }; | 312 }; |
| 310 | 313 |
| 311 } // namespace content | 314 } // namespace content |
| 312 | 315 |
| 313 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 316 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |