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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void SetHasPostData(bool has_post_data) OVERRIDE; | 55 virtual void SetHasPostData(bool has_post_data) OVERRIDE; |
56 virtual bool GetHasPostData() const OVERRIDE; | 56 virtual bool GetHasPostData() const OVERRIDE; |
57 virtual void SetPostID(int64 post_id) OVERRIDE; | 57 virtual void SetPostID(int64 post_id) OVERRIDE; |
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 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; | 63 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; |
64 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; | 64 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; |
| 65 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; |
| 66 virtual bool GetIsOverridingUserAgent() const OVERRIDE; |
65 | 67 |
66 void set_unique_id(int unique_id) { | 68 void set_unique_id(int unique_id) { |
67 unique_id_ = unique_id; | 69 unique_id_ = unique_id; |
68 } | 70 } |
69 | 71 |
70 // The SiteInstance tells us how to share sub-processes. This is a reference | 72 // The SiteInstance tells us how to share sub-processes. This is a reference |
71 // counted pointer to a shared site instance. | 73 // counted pointer to a shared site instance. |
72 // | 74 // |
73 // Note that the SiteInstance should usually not be changed after it is set, | 75 // Note that the SiteInstance should usually not be changed after it is set, |
74 // but this may happen if the NavigationEntry was cloned and needs to use a | 76 // but this may happen if the NavigationEntry was cloned and needs to use a |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 FaviconStatus favicon_; | 175 FaviconStatus favicon_; |
174 std::string content_state_; | 176 std::string content_state_; |
175 int32 page_id_; | 177 int32 page_id_; |
176 SSLStatus ssl_; | 178 SSLStatus ssl_; |
177 PageTransition transition_type_; | 179 PageTransition transition_type_; |
178 GURL user_typed_url_; | 180 GURL user_typed_url_; |
179 bool has_post_data_; | 181 bool has_post_data_; |
180 int64 post_id_; | 182 int64 post_id_; |
181 RestoreType restore_type_; | 183 RestoreType restore_type_; |
182 GURL original_request_url_; | 184 GURL original_request_url_; |
| 185 bool is_overriding_user_agent_; |
183 | 186 |
184 // This member is not persisted with sesssion restore. | 187 // This member is not persisted with sesssion restore. |
185 std::string extra_headers_; | 188 std::string extra_headers_; |
186 | 189 |
187 // Whether the entry, while loading, was created for a renderer-initiated | 190 // Whether the entry, while loading, was created for a renderer-initiated |
188 // navigation. This dictates whether the URL should be displayed before the | 191 // navigation. This dictates whether the URL should be displayed before the |
189 // navigation commits. It is cleared on commit and not persisted. | 192 // navigation commits. It is cleared on commit and not persisted. |
190 bool is_renderer_initiated_; | 193 bool is_renderer_initiated_; |
191 | 194 |
192 // This is a cached version of the result of GetTitleForDisplay. It prevents | 195 // This is a cached version of the result of GetTitleForDisplay. It prevents |
(...skipping 17 matching lines...) Expand all Loading... |
210 // instance, instead of a new navigation. This value should not be persisted | 213 // instance, instead of a new navigation. This value should not be persisted |
211 // and is not needed after the entry commits. | 214 // and is not needed after the entry commits. |
212 bool is_cross_site_reload_; | 215 bool is_cross_site_reload_; |
213 | 216 |
214 // Copy and assignment is explicitly allowed for this class. | 217 // Copy and assignment is explicitly allowed for this class. |
215 }; | 218 }; |
216 | 219 |
217 } // namespace content | 220 } // namespace content |
218 | 221 |
219 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 222 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |