Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / browser / stream_handle.h
blob7a8fb3225cd86f53480a55880ee93594c2179aad
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_forward.h"
9 #include "content/common/content_export.h"
10 #include "url/gurl.h"
12 namespace content {
14 // A handle to a Stream. When the handle is destroyed, the stream is released
15 // and the URL is invalidated.
16 class CONTENT_EXPORT StreamHandle {
17 public:
18 virtual ~StreamHandle() {}
20 // Gets the URL the stream can be read from.
21 virtual const GURL& GetURL() = 0;
23 // Add a callback which will be called when the Stream is closed.
24 virtual void AddCloseListener(const base::Closure& callback) = 0;
27 } // namespace content
29 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_