| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
| 6 #define COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 6 #define COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <set> | 10 #include <set> |
| 9 #include <string> | 11 #include <string> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 16 #include "components/sessions/core/sessions_export.h" | 17 #include "components/sessions/core/sessions_export.h" |
| 17 #include "ui/base/page_transition_types.h" | 18 #include "ui/base/page_transition_types.h" |
| 18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 class Pickle; | 22 class Pickle; |
| 22 class PickleIterator; | 23 class PickleIterator; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const std::string& encoded_page_state() const { return encoded_page_state_; } | 83 const std::string& encoded_page_state() const { return encoded_page_state_; } |
| 83 const base::string16& search_terms() const { return search_terms_; } | 84 const base::string16& search_terms() const { return search_terms_; } |
| 84 const GURL& favicon_url() const { return favicon_url_; } | 85 const GURL& favicon_url() const { return favicon_url_; } |
| 85 int http_status_code() const { return http_status_code_; } | 86 int http_status_code() const { return http_status_code_; } |
| 86 const GURL& referrer_url() const { return referrer_url_; } | 87 const GURL& referrer_url() const { return referrer_url_; } |
| 87 int referrer_policy() const { return referrer_policy_; } | 88 int referrer_policy() const { return referrer_policy_; } |
| 88 ui::PageTransition transition_type() const { | 89 ui::PageTransition transition_type() const { |
| 89 return transition_type_; | 90 return transition_type_; |
| 90 } | 91 } |
| 91 bool has_post_data() const { return has_post_data_; } | 92 bool has_post_data() const { return has_post_data_; } |
| 92 int64 post_id() const { return post_id_; } | 93 int64_t post_id() const { return post_id_; } |
| 93 const GURL& original_request_url() const { return original_request_url_; } | 94 const GURL& original_request_url() const { return original_request_url_; } |
| 94 bool is_overriding_user_agent() const { return is_overriding_user_agent_; } | 95 bool is_overriding_user_agent() const { return is_overriding_user_agent_; } |
| 95 base::Time timestamp() const { return timestamp_; } | 96 base::Time timestamp() const { return timestamp_; } |
| 96 | 97 |
| 97 BlockedState blocked_state() { return blocked_state_; } | 98 BlockedState blocked_state() { return blocked_state_; } |
| 98 void set_blocked_state(BlockedState blocked_state) { | 99 void set_blocked_state(BlockedState blocked_state) { |
| 99 blocked_state_ = blocked_state; | 100 blocked_state_ = blocked_state; |
| 100 } | 101 } |
| 101 std::set<std::string> content_pack_categories() { | 102 std::set<std::string> content_pack_categories() { |
| 102 return content_pack_categories_; | 103 return content_pack_categories_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 119 | 120 |
| 120 // Member variables corresponding to NavigationEntry fields. | 121 // Member variables corresponding to NavigationEntry fields. |
| 121 int unique_id_; | 122 int unique_id_; |
| 122 GURL referrer_url_; | 123 GURL referrer_url_; |
| 123 int referrer_policy_; | 124 int referrer_policy_; |
| 124 GURL virtual_url_; | 125 GURL virtual_url_; |
| 125 base::string16 title_; | 126 base::string16 title_; |
| 126 std::string encoded_page_state_; | 127 std::string encoded_page_state_; |
| 127 ui::PageTransition transition_type_; | 128 ui::PageTransition transition_type_; |
| 128 bool has_post_data_; | 129 bool has_post_data_; |
| 129 int64 post_id_; | 130 int64_t post_id_; |
| 130 GURL original_request_url_; | 131 GURL original_request_url_; |
| 131 bool is_overriding_user_agent_; | 132 bool is_overriding_user_agent_; |
| 132 base::Time timestamp_; | 133 base::Time timestamp_; |
| 133 base::string16 search_terms_; | 134 base::string16 search_terms_; |
| 134 GURL favicon_url_; | 135 GURL favicon_url_; |
| 135 int http_status_code_; | 136 int http_status_code_; |
| 136 bool is_restored_; // Not persisted. | 137 bool is_restored_; // Not persisted. |
| 137 std::vector<GURL> redirect_chain_; // Not persisted. | 138 std::vector<GURL> redirect_chain_; // Not persisted. |
| 138 | 139 |
| 139 // Additional information. | 140 // Additional information. |
| 140 BlockedState blocked_state_; | 141 BlockedState blocked_state_; |
| 141 std::set<std::string> content_pack_categories_; | 142 std::set<std::string> content_pack_categories_; |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 } // namespace sessions | 145 } // namespace sessions |
| 145 | 146 |
| 146 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 147 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
| OLD | NEW |