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

Unified Diff: content/browser/frame_host/navigator_delegate.h

Issue 2746043003: Fix user agent overridding with PlzNavigate. (Closed)
Patch Set: without PlzNavigate Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigator_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
index c3db7d188332668261784b124efbf04e29fe140a..ad1aba9bc207417e6e99dd5bb4d263595e92488e 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -105,6 +105,9 @@ class CONTENT_EXPORT NavigatorDelegate {
// preserved in the omnibox. Defaults to false.
virtual bool ShouldPreserveAbortedURLs();
+ // Returns the overriden user agent string if it's set.
+ virtual const std::string& GetNavigationUserAgentOverride();
nasko 2017/03/13 18:47:12 nit: The "Navigation" part of the name doesn't rea
jam 2017/03/13 19:32:40 yeah I did it this way because WebContents, which
nasko 2017/03/13 20:35:41 We have a few cases where the same pure virtual me
jam 2017/03/13 20:38:25 ah, if there's already precedent with this interfa
+
// A RenderFrameHost in the specified |frame_tree_node| started loading a new
// document. This correponds to Blink's notion of the throbber starting.
// |to_different_document| will be true unless the load is a fragment
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698