summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/public/WebFrameClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/public/WebFrameClient.h')
-rw-r--r--Source/WebKit/chromium/public/WebFrameClient.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/public/WebFrameClient.h b/Source/WebKit/chromium/public/WebFrameClient.h
index 9270d1ab9..662c7c1c5 100644
--- a/Source/WebKit/chromium/public/WebFrameClient.h
+++ b/Source/WebKit/chromium/public/WebFrameClient.h
@@ -397,6 +397,11 @@ public:
WebSecurityOrigin target,
WebDOMMessageEvent) { return false; }
+ // Asks the embedder if a specific user agent should be used for the given
+ // URL. Returns true if it should, along with the user agent. If false,
+ // WebKitPlatformSupport::userAgent() will be called to provide one.
+ virtual bool userAgent(const WebURL& url, WebString* userAgent) { return false; }
+
protected:
~WebFrameClient() { }
};