| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 int unique_id() const { | 199 int unique_id() const { |
| 200 return unique_id_; | 200 return unique_id_; |
| 201 } | 201 } |
| 202 | 202 |
| 203 // The SiteInstance tells us how to share sub-processes when the tab type is | 203 // The SiteInstance tells us how to share sub-processes when the tab type is |
| 204 // TAB_CONTENTS_WEB. This will be NULL otherwise. This is a reference counted | 204 // TAB_CONTENTS_WEB. This will be NULL otherwise. This is a reference counted |
| 205 // pointer to a shared site instance. | 205 // pointer to a shared site instance. |
| 206 // | 206 // |
| 207 // Note that the SiteInstance should usually not be changed after it is set, | 207 // Note that the SiteInstance should usually not be changed after it is set, |
| 208 // but this may happen if the NavigationEntry was cloned and needs to use a | 208 // but this may happen if the NavigationEntry was cloned and needs to use a |
| 209 // different SiteInstance. | 209 // different SiteInstance, or if a hosted app is installed or uninstalled. |
| 210 void set_site_instance(SiteInstance* site_instance); | 210 void set_site_instance(SiteInstance* site_instance); |
| 211 SiteInstance* site_instance() const { | 211 SiteInstance* site_instance() const { |
| 212 return site_instance_; | 212 return site_instance_; |
| 213 } | 213 } |
| 214 | 214 |
| 215 // The page type tells us if this entry is for an interstitial or error page. | 215 // The page type tells us if this entry is for an interstitial or error page. |
| 216 // See the PageType enum above. | 216 // See the PageType enum above. |
| 217 void set_page_type(PageType page_type) { | 217 void set_page_type(PageType page_type) { |
| 218 page_type_ = page_type; | 218 page_type_ = page_type; |
| 219 } | 219 } |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 // This is a cached version of the result of GetTitleForDisplay. It prevents | 420 // This is a cached version of the result of GetTitleForDisplay. It prevents |
| 421 // us from having to do URL formatting on the URL evey time the title is | 421 // us from having to do URL formatting on the URL evey time the title is |
| 422 // displayed. When the URL, virtual URL, or title is set, this should be | 422 // displayed. When the URL, virtual URL, or title is set, this should be |
| 423 // cleared to force a refresh. | 423 // cleared to force a refresh. |
| 424 string16 cached_display_title_; | 424 string16 cached_display_title_; |
| 425 | 425 |
| 426 // Copy and assignment is explicitly allowed for this class. | 426 // Copy and assignment is explicitly allowed for this class. |
| 427 }; | 427 }; |
| 428 | 428 |
| 429 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 429 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
| OLD | NEW |