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

Side by Side Diff: content/browser/tab_contents/referrer.cc

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
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 #include <iostream>
6
7 #include "content/browser/tab_contents/referrer.h"
8
9 using WebKit::WebReferrerPolicy;
10
11 namespace content {
12
13 Referrer::Referrer(const GURL& url,
14 WebReferrerPolicy policy)
15 : url_(url),
16 policy_(policy) {
17 }
18
19 Referrer::Referrer()
20 : policy_(WebKit::WebReferrerPolicyDefault) {
21 }
22
23 std::ostream& operator<<(std::ostream& out, const Referrer& referrer) {
24 return out << referrer.url();
25 }
26
27 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698