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 CONTENT_PUBLIC_COMMON_REFERRER_H_ | |
6 #define CONTENT_PUBLIC_COMMON_REFERRER_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
jam
2011/11/24 23:06:41
nit: needed?
| |
10 #include "content/common/content_export.h" | |
11 #include "googleurl/src/gurl.h" | |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" | |
13 | |
14 namespace content { | |
15 | |
16 // This struct holds a referrer URL, as well as the referrer policy to be | |
17 // applied to this URL. When passing around referrers that will eventually end | |
18 // up being used for URL requests, always use this struct. | |
19 struct CONTENT_EXPORT Referrer { | |
20 Referrer(const GURL& referrer, WebKit::WebReferrerPolicy referrer_policy); | |
21 Referrer(); | |
22 | |
23 GURL url; | |
24 WebKit::WebReferrerPolicy policy; | |
25 }; | |
26 | |
27 } // namespace content | |
28 | |
29 #endif // CONTENT_PUBLIC_COMMON_REFERRER_H_ | |
OLD | NEW |