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

Unified Diff: content/public/renderer/render_frame_observer.h

Issue 614343002: Allow override of user agent depending on url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: content/public/renderer/render_frame_observer.h
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
index b01856e225d7bcb23e50eab2201765f0dc5fb35f..308f2257be241978336ad00e40bd2e0811843a58 100644
--- a/content/public/renderer/render_frame_observer.h
+++ b/content/public/renderer/render_frame_observer.h
@@ -11,6 +11,7 @@
#include "content/common/content_export.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
+#include "url/gurl.h"
jochen (gone - plz use gerrit) 2014/10/02 09:24:03 should be enough to forward declare GURL, no?
#include "v8/include/v8.h"
namespace blink {
@@ -74,6 +75,10 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
// Called when a compositor frame has committed.
virtual void DidCommitCompositorFrame() {}
+ // Returns a user agent override specific for |url|, or empty string if
+ // default user agent should be used.
+ virtual std::string GetUserAgentOverrideForURL(const GURL& url);
+
// IPC::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
« no previous file with comments | « no previous file | content/public/renderer/render_frame_observer.cc » ('j') | content/public/renderer/render_frame_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698