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