Chromium Code Reviews| 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_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_ | |
| OLD | NEW |