Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: components/sessions/serialized_navigation_entry.h

Issue 107383002: Use base namespace for string16 in components and cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SERIALIZED_NAVIGATION_ENTRY_H_ 5 #ifndef COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_
6 #define COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_ 6 #define COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 sync_pb::TabNavigation ToSyncData() const; 89 sync_pb::TabNavigation ToSyncData() const;
90 90
91 // The index in the NavigationController. This SerializedNavigationEntry is 91 // The index in the NavigationController. This SerializedNavigationEntry is
92 // valid only when the index is non-negative. 92 // valid only when the index is non-negative.
93 int index() const { return index_; } 93 int index() const { return index_; }
94 void set_index(int index) { index_ = index; } 94 void set_index(int index) { index_ = index; }
95 95
96 // Accessors for some fields taken from NavigationEntry. 96 // Accessors for some fields taken from NavigationEntry.
97 int unique_id() const { return unique_id_; } 97 int unique_id() const { return unique_id_; }
98 const GURL& virtual_url() const { return virtual_url_; } 98 const GURL& virtual_url() const { return virtual_url_; }
99 const string16& title() const { return title_; } 99 const base::string16& title() const { return title_; }
100 const content::PageState& page_state() const { return page_state_; } 100 const content::PageState& page_state() const { return page_state_; }
101 const string16& search_terms() const { return search_terms_; } 101 const base::string16& search_terms() const { return search_terms_; }
102 const GURL& favicon_url() const { return favicon_url_; } 102 const GURL& favicon_url() const { return favicon_url_; }
103 int http_status_code() const { return http_status_code_; } 103 int http_status_code() const { return http_status_code_; }
104 const content::Referrer& referrer() const { return referrer_; } 104 const content::Referrer& referrer() const { return referrer_; }
105 content::PageTransition transition_type() const { 105 content::PageTransition transition_type() const {
106 return transition_type_; 106 return transition_type_;
107 } 107 }
108 bool has_post_data() const { return has_post_data_; } 108 bool has_post_data() const { return has_post_data_; }
109 int64 post_id() const { return post_id_; } 109 int64 post_id() const { return post_id_; }
110 const GURL& original_request_url() const { return original_request_url_; } 110 const GURL& original_request_url() const { return original_request_url_; }
111 bool is_overriding_user_agent() const { return is_overriding_user_agent_; } 111 bool is_overriding_user_agent() const { return is_overriding_user_agent_; }
(...skipping 21 matching lines...) Expand all
133 private: 133 private:
134 friend class SerializedNavigationEntryTestHelper; 134 friend class SerializedNavigationEntryTestHelper;
135 135
136 // Index in the NavigationController. 136 // Index in the NavigationController.
137 int index_; 137 int index_;
138 138
139 // Member variables corresponding to NavigationEntry fields. 139 // Member variables corresponding to NavigationEntry fields.
140 int unique_id_; 140 int unique_id_;
141 content::Referrer referrer_; 141 content::Referrer referrer_;
142 GURL virtual_url_; 142 GURL virtual_url_;
143 string16 title_; 143 base::string16 title_;
144 content::PageState page_state_; 144 content::PageState page_state_;
145 content::PageTransition transition_type_; 145 content::PageTransition transition_type_;
146 bool has_post_data_; 146 bool has_post_data_;
147 int64 post_id_; 147 int64 post_id_;
148 GURL original_request_url_; 148 GURL original_request_url_;
149 bool is_overriding_user_agent_; 149 bool is_overriding_user_agent_;
150 base::Time timestamp_; 150 base::Time timestamp_;
151 string16 search_terms_; 151 base::string16 search_terms_;
152 GURL favicon_url_; 152 GURL favicon_url_;
153 int http_status_code_; 153 int http_status_code_;
154 154
155 // Additional information. 155 // Additional information.
156 BlockedState blocked_state_; 156 BlockedState blocked_state_;
157 std::set<std::string> content_pack_categories_; 157 std::set<std::string> content_pack_categories_;
158 }; 158 };
159 159
160 } // namespace sessions 160 } // namespace sessions
161 161
162 #endif // COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_ 162 #endif // COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/registry_dict_win.cc ('k') | components/sessions/serialized_navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698