Make sure webrtc::VideoSourceInterface is released on the main render thread.
[chromium-blink-merge.git] / content / public / browser / stream_handle.h
blobb87402e543e3a130e2ec9bf18cdef1e11f244264
1 // Copyright (c) 2013 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_BROWSER_STREAM_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
11 #include "url/gurl.h"
13 namespace net {
14 class HttpResponseHeaders;
17 namespace content {
19 class CONTENT_EXPORT StreamHandle {
20 public:
21 virtual ~StreamHandle() {}
23 // Gets the URL the stream can be read from.
24 virtual const GURL& GetURL() = 0;
26 // Gets the original URL being redirected to this Stream.
27 virtual const GURL& GetOriginalURL() = 0;
29 // Get the MIME type associated with this Stream.
30 virtual const std::string& GetMimeType() = 0;
32 // Get the HTTP response headers associated with this Stream.
33 virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() = 0;
36 } // namespace content
38 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_