| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_NAVIGATION_ENTRY_H_ | 5 #ifndef CHROME_BROWSER_NAVIGATION_ENTRY_H_ |
| 6 #define CHROME_BROWSER_NAVIGATION_ENTRY_H_ | 6 #define CHROME_BROWSER_NAVIGATION_ENTRY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/app/theme/theme_resources.h" | 10 #include "chrome/app/theme/theme_resources.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 PageType page_type() const { | 214 PageType page_type() const { |
| 215 return page_type_; | 215 return page_type_; |
| 216 } | 216 } |
| 217 | 217 |
| 218 // The actual URL of the page. For some about pages, this may be a scary | 218 // The actual URL of the page. For some about pages, this may be a scary |
| 219 // data: URL or something like that. Use display_url() below for showing to | 219 // data: URL or something like that. Use display_url() below for showing to |
| 220 // the user. | 220 // the user. |
| 221 void set_url(const GURL& url) { | 221 void set_url(const GURL& url) { |
| 222 url_ = url; | 222 url_ = url; |
| 223 url_as_string_ = UTF8ToWide(url_.spec()); | |
| 224 } | 223 } |
| 225 const GURL& url() const { | 224 const GURL& url() const { |
| 226 return url_; | 225 return url_; |
| 227 } | 226 } |
| 228 | 227 |
| 229 // The referring URL. Can be empty. | 228 // The referring URL. Can be empty. |
| 230 void set_referrer(const GURL& referrer) { | 229 void set_referrer(const GURL& referrer) { |
| 231 referrer_ = referrer; | 230 referrer_ = referrer; |
| 232 } | 231 } |
| 233 const GURL& referrer() const { | 232 const GURL& referrer() const { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 365 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 367 | 366 |
| 368 // See the accessors above for descriptions. | 367 // See the accessors above for descriptions. |
| 369 int unique_id_; | 368 int unique_id_; |
| 370 TabContentsType tab_type_; | 369 TabContentsType tab_type_; |
| 371 scoped_refptr<SiteInstance> site_instance_; | 370 scoped_refptr<SiteInstance> site_instance_; |
| 372 PageType page_type_; | 371 PageType page_type_; |
| 373 GURL url_; | 372 GURL url_; |
| 374 GURL referrer_; | 373 GURL referrer_; |
| 375 | 374 |
| 376 std::wstring url_as_string_; | |
| 377 GURL display_url_; | 375 GURL display_url_; |
| 378 std::wstring title_; | 376 std::wstring title_; |
| 379 FaviconStatus favicon_; | 377 FaviconStatus favicon_; |
| 380 std::string content_state_; | 378 std::string content_state_; |
| 381 int32 page_id_; | 379 int32 page_id_; |
| 382 SSLStatus ssl_; | 380 SSLStatus ssl_; |
| 383 PageTransition::Type transition_type_; | 381 PageTransition::Type transition_type_; |
| 384 GURL user_typed_url_; | 382 GURL user_typed_url_; |
| 385 bool has_post_data_; | 383 bool has_post_data_; |
| 386 bool restored_; | 384 bool restored_; |
| 387 | 385 |
| 388 // Copy and assignment is explicitly allowed for this class. | 386 // Copy and assignment is explicitly allowed for this class. |
| 389 }; | 387 }; |
| 390 | 388 |
| 391 #endif // CHROME_BROWSER_NAVIGATION_ENTRY_H_ | 389 #endif // CHROME_BROWSER_NAVIGATION_ENTRY_H_ |
| OLD | NEW |