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

Side by Side Diff: content/public/browser/web_contents.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
« no previous file with comments | « content/public/browser/navigation_entry.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // necessary. However if the embedder wants to create its own WebUI object and 113 // necessary. However if the embedder wants to create its own WebUI object and
114 // keep track of it manually, it can use this. 114 // keep track of it manually, it can use this.
115 virtual WebUI* CreateWebUI(const GURL& url) = 0; 115 virtual WebUI* CreateWebUI(const GURL& url) = 0;
116 116
117 // Returns the committed WebUI if one exists, otherwise the pending one. 117 // Returns the committed WebUI if one exists, otherwise the pending one.
118 // Callers who want to use the pending WebUI for the pending navigation entry 118 // Callers who want to use the pending WebUI for the pending navigation entry
119 // should use GetWebUIForCurrentState instead. 119 // should use GetWebUIForCurrentState instead.
120 virtual WebUI* GetWebUI() const = 0; 120 virtual WebUI* GetWebUI() const = 0;
121 virtual WebUI* GetCommittedWebUI() const = 0; 121 virtual WebUI* GetCommittedWebUI() const = 0;
122 122
123 // Allows overriding the user agent used for NavigationEntries it owns.
124 virtual void SetUserAgentOverride(const std::string& override) = 0;
125 virtual const std::string& GetUserAgentOverride() const = 0;
126
123 // Tab navigation state ------------------------------------------------------ 127 // Tab navigation state ------------------------------------------------------
124 128
125 // Returns the current navigation properties, which if a navigation is 129 // Returns the current navigation properties, which if a navigation is
126 // pending may be provisional (e.g., the navigation could result in a 130 // pending may be provisional (e.g., the navigation could result in a
127 // download, in which case the URL would revert to what it was previously). 131 // download, in which case the URL would revert to what it was previously).
128 virtual const string16& GetTitle() const = 0; 132 virtual const string16& GetTitle() const = 0;
129 133
130 // The max page ID for any page that the current SiteInstance has loaded in 134 // The max page ID for any page that the current SiteInstance has loaded in
131 // this WebContents. Page IDs are specific to a given SiteInstance and 135 // this WebContents. Page IDs are specific to a given SiteInstance and
132 // WebContents, corresponding to a specific RenderView in the renderer. 136 // WebContents, corresponding to a specific RenderView in the renderer.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Focuses the location bar. 376 // Focuses the location bar.
373 virtual void SetFocusToLocationBar(bool select_all) = 0; 377 virtual void SetFocusToLocationBar(bool select_all) = 0;
374 378
375 // Does this have an opener associated with it? 379 // Does this have an opener associated with it?
376 virtual bool HasOpener() const = 0; 380 virtual bool HasOpener() const = 0;
377 }; 381 };
378 382
379 } // namespace content 383 } // namespace content
380 384
381 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 385 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_entry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698