Make sure webrtc::VideoSourceInterface is released on the main render thread.
[chromium-blink-merge.git] / content / public / common / referrer.h
blobb10bfd6c28e6cd96f6e44a5a2070904693fae979
1 // Copyright (c) 2012 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.
5 #ifndef CONTENT_PUBLIC_COMMON_REFERRER_H_
6 #define CONTENT_PUBLIC_COMMON_REFERRER_H_
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
10 #include "url/gurl.h"
12 namespace content {
14 // This struct holds a referrer URL, as well as the referrer policy to be
15 // applied to this URL. When passing around referrers that will eventually end
16 // up being used for URL requests, always use this struct.
17 struct CONTENT_EXPORT Referrer {
18 Referrer(const GURL& url, blink::WebReferrerPolicy policy) : url(url),
19 policy(policy) {
21 Referrer() : policy(blink::WebReferrerPolicyDefault) {
24 GURL url;
25 blink::WebReferrerPolicy policy;
28 } // namespace content
30 #endif // CONTENT_PUBLIC_COMMON_REFERRER_H_