Chromium Code Reviews| 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); |
| }; |