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

Side by Side Diff: content/browser/web_contents/navigation_entry_impl.h

Issue 10170016: Add info about user agent overrides to WebContents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Forgot to initialize bool in constructor; win_rel caught it Created 8 years, 7 months 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
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/tab_restore_service.cc ('k') | content/browser/web_contents/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698