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

Unified Diff: webkit/glue/weburlrequest_extradata_impl.h

Issue 8616006: Implement meta referrer (part 1/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 1 month 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
Index: webkit/glue/weburlrequest_extradata_impl.h
diff --git a/webkit/glue/weburlrequest_extradata_impl.h b/webkit/glue/weburlrequest_extradata_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..07fc67232129239f0982ea45b30313c7af117b15
--- /dev/null
+++ b/webkit/glue/weburlrequest_extradata_impl.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_WEBURLREQUEST_EXTRADATA_IMPL_H_
+#define WEBKIT_GLUE_WEBURLREQUEST_EXTRADATA_IMPL_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
+
+namespace webkit_glue {
+
+// Base class for Chrome's implementation of the "extra data" stored in each
+// ResourceRequest.
+class WebURLRequestExtraDataImpl : public WebKit::WebURLRequest::ExtraData {
+ public:
+ WebURLRequestExtraDataImpl(WebKit::WebReferrerPolicy referrer_policy);
+ virtual ~WebURLRequestExtraDataImpl();
+
+ WebKit::WebReferrerPolicy referrer_policy() const { return referrer_policy_; }
+
+ private:
+ WebKit::WebReferrerPolicy referrer_policy_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebURLRequestExtraDataImpl);
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_GLUE_WEBURLREQUEST_EXTRADATA_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698