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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual int64 GetPostID() const OVERRIDE; | 58 virtual int64 GetPostID() const OVERRIDE; |
59 virtual const FaviconStatus& GetFavicon() const OVERRIDE; | 59 virtual const FaviconStatus& GetFavicon() const OVERRIDE; |
60 virtual FaviconStatus& GetFavicon() OVERRIDE; | 60 virtual FaviconStatus& GetFavicon() OVERRIDE; |
61 virtual const SSLStatus& GetSSL() const OVERRIDE; | 61 virtual const SSLStatus& GetSSL() const OVERRIDE; |
62 virtual SSLStatus& GetSSL() OVERRIDE; | 62 virtual SSLStatus& GetSSL() OVERRIDE; |
63 | 63 |
64 void set_unique_id(int unique_id) { | 64 void set_unique_id(int unique_id) { |
65 unique_id_ = unique_id; | 65 unique_id_ = unique_id; |
66 } | 66 } |
67 | 67 |
68 // The SiteInstance tells us how to share sub-processes when the tab type is | 68 // The SiteInstance tells us how to share sub-processes. This is a reference |
69 // TAB_CONTENTS_WEB. This will be NULL otherwise. This is a reference counted | 69 // counted pointer to a shared site instance. |
70 // pointer to a shared site instance. | |
71 // | 70 // |
72 // Note that the SiteInstance should usually not be changed after it is set, | 71 // Note that the SiteInstance should usually not be changed after it is set, |
73 // but this may happen if the NavigationEntry was cloned and needs to use a | 72 // but this may happen if the NavigationEntry was cloned and needs to use a |
74 // different SiteInstance. | 73 // different SiteInstance. |
75 void set_site_instance(SiteInstanceImpl* site_instance); | 74 void set_site_instance(SiteInstanceImpl* site_instance); |
76 SiteInstanceImpl* site_instance() const { | 75 SiteInstanceImpl* site_instance() const { |
77 return site_instance_.get(); | 76 return site_instance_.get(); |
78 } | 77 } |
79 | 78 |
80 void set_page_type(PageType page_type) { | 79 void set_page_type(PageType page_type) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // instance, instead of a new navigation. This value should not be persisted | 207 // instance, instead of a new navigation. This value should not be persisted |
209 // and is not needed after the entry commits. | 208 // and is not needed after the entry commits. |
210 bool is_cross_site_reload_; | 209 bool is_cross_site_reload_; |
211 | 210 |
212 // Copy and assignment is explicitly allowed for this class. | 211 // Copy and assignment is explicitly allowed for this class. |
213 }; | 212 }; |
214 | 213 |
215 } // namespace content | 214 } // namespace content |
216 | 215 |
217 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 216 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |