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

Unified Diff: webkit/glue/weburlrequest_extradata_impl.h

Issue 18601004: Add the UMA PLT.BeginToFinish{,Doc}_AfterPreconnectRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: follow interface change Created 7 years, 5 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/renderer/render_view_impl.cc ('k') | webkit/glue/weburlrequest_extradata_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlrequest_extradata_impl.h
diff --git a/webkit/glue/weburlrequest_extradata_impl.h b/webkit/glue/weburlrequest_extradata_impl.h
index 151c4845c36ecd965f87bea2bac4fd9084a9b7fb..79d5f13f8097e7a232b465a916da7e8570c3b9ad 100644
--- a/webkit/glue/weburlrequest_extradata_impl.h
+++ b/webkit/glue/weburlrequest_extradata_impl.h
@@ -18,6 +18,8 @@ namespace webkit_glue {
class WEBKIT_COMMON_EXPORT WebURLRequestExtraDataImpl :
public NON_EXPORTED_BASE(WebKit::WebURLRequest::ExtraData) {
public:
+ static const int kType;
+
// |custom_user_agent| is used to communicate an overriding custom user agent
// to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no
// override and an empty string to indicate that there should be no user
@@ -32,11 +34,18 @@ class WEBKIT_COMMON_EXPORT WebURLRequestExtraDataImpl :
const WebKit::WebString& custom_user_agent() const {
return custom_user_agent_;
}
+ int type_id() const { return type_id_; }
jam 2013/07/11 16:23:52 hmm, seems best to avoid this hand rolled RTTI
+
+ protected:
+ void set_type_id(int id) { type_id_ = id; }
private:
WebKit::WebReferrerPolicy referrer_policy_;
WebKit::WebString custom_user_agent_;
+ // This is used to identify subclass of WebURLRequestExtraDataImpl.
+ int type_id_;
+
DISALLOW_COPY_AND_ASSIGN(WebURLRequestExtraDataImpl);
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/glue/weburlrequest_extradata_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698