OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_GLUE_WEBURLREQUEST_EXTRADATA_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBURLREQUEST_EXTRADATA_IMPL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" |
| 12 |
| 13 namespace webkit_glue { |
| 14 |
| 15 // Base class for Chrome's implementation of the "extra data" stored in each |
| 16 // ResourceRequest. |
| 17 class WebURLRequestExtraDataImpl : public WebKit::WebURLRequest::ExtraData { |
| 18 public: |
| 19 WebURLRequestExtraDataImpl(WebKit::WebReferrerPolicy referrer_policy); |
| 20 virtual ~WebURLRequestExtraDataImpl(); |
| 21 |
| 22 WebKit::WebReferrerPolicy referrer_policy() const { return referrer_policy_; } |
| 23 |
| 24 private: |
| 25 WebKit::WebReferrerPolicy referrer_policy_; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(WebURLRequestExtraDataImpl); |
| 28 }; |
| 29 |
| 30 } // namespace webkit_glue |
| 31 |
| 32 #endif // WEBKIT_GLUE_WEBURLREQUEST_EXTRADATA_IMPL_H_ |
OLD | NEW |