| Index: content/browser/tab_contents/referrer.cc
|
| diff --git a/content/browser/tab_contents/referrer.cc b/content/browser/tab_contents/referrer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c36719c8f020bb65d0184c0d8fa27d1097e35fd7
|
| --- /dev/null
|
| +++ b/content/browser/tab_contents/referrer.cc
|
| @@ -0,0 +1,27 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <iostream>
|
| +
|
| +#include "content/browser/tab_contents/referrer.h"
|
| +
|
| +using WebKit::WebReferrerPolicy;
|
| +
|
| +namespace content {
|
| +
|
| +Referrer::Referrer(const GURL& url,
|
| + WebReferrerPolicy policy)
|
| + : url_(url),
|
| + policy_(policy) {
|
| +}
|
| +
|
| +Referrer::Referrer()
|
| + : policy_(WebKit::WebReferrerPolicyDefault) {
|
| +}
|
| +
|
| +std::ostream& operator<<(std::ostream& out, const Referrer& referrer) {
|
| + return out << referrer.url();
|
| +}
|
| +
|
| +} // namespace
|
|
|