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

Side by Side Diff: content/public/common/referrer.h

Issue 8635017: Add a referrer class to be used in the browser process whenever passing around referrsr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "content/common/content_export.h"
10 #include "googleurl/src/gurl.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
12
13 namespace content {
14
15 // This struct holds a referrer URL, as well as the referrer policy to be
16 // applied to this URL. When passing around referrers that will eventually end
17 // up being used for URL requests, always use this struct.
18 struct CONTENT_EXPORT Referrer {
19 Referrer(const GURL& url, WebKit::WebReferrerPolicy policy)
20 : url(url),
21 policy(policy) {
22 }
23 Referrer()
24 : policy(WebKit::WebReferrerPolicyDefault) {
25 }
26
27 GURL url;
28 WebKit::WebReferrerPolicy policy;
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_PUBLIC_COMMON_REFERRER_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698