blob: 68104cde014def85eb5690d1547d9ef36b3df71c [file] [log] [blame]
// Copyright (c) 2012 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 "content/common/content_export.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
namespace content {
// This struct holds a referrer URL, as well as the referrer policy to be
// applied to this URL. When passing around referrers that will eventually end
// up being used for URL requests, always use this struct.
struct CONTENT_EXPORT Referrer {
Referrer(const GURL& url, WebKit::WebReferrerPolicy policy) : url(url),
policy(policy) {
Referrer() : policy(WebKit::WebReferrerPolicyDefault) {
GURL url;
WebKit::WebReferrerPolicy policy;
} // namespace content