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

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
« content/common/referrer.cc ('K') | « 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_BROWSER_TAB_CONTENTS_REFERRER_H_
jam 2011/11/24 21:17:35 CONTENT_PUBLIC_COMMON_REFERRER_H_, presubmit would
jochen (gone - plz use gerrit) 2011/11/24 23:02:40 actually, it doesn't... strange :-/
6 #define CONTENT_BROWSER_TAB_CONTENTS_REFERRER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
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 class 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 class.
19 class CONTENT_EXPORT Referrer {
jam 2011/11/24 21:17:35 this seems like it should just be a struct (perhap
jochen (gone - plz use gerrit) 2011/11/24 23:02:40 Done.
20 public:
21 Referrer(const GURL& referrer, WebKit::WebReferrerPolicy referrer_policy);
22 Referrer();
23
24 const GURL& url() const { return url_; }
25 WebKit::WebReferrerPolicy policy() const { return policy_; }
26
27 private:
28 GURL url_;
29 WebKit::WebReferrerPolicy policy_;
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_BROWSER_TAB_CONTENTS_REFERRER_H_
OLDNEW
« content/common/referrer.cc ('K') | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698