Chromium Code Reviews| Index: content/public/browser/stream_handle.h |
| diff --git a/content/public/browser/stream_handle.h b/content/public/browser/stream_handle.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..85dad2874edb81796b6c59a9e27c15814bd20c6a |
| --- /dev/null |
| +++ b/content/public/browser/stream_handle.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2013 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. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ |
| +#define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ |
| + |
| +#include "base/callback.h" |
| +#include "content/common/content_export.h" |
| +#include "googleurl/src/gurl.h" |
| + |
| +namespace content { |
| + |
| +class CONTENT_EXPORT StreamHandle { |
| + public: |
| + virtual ~StreamHandle() {} |
| + |
| + virtual const GURL& GetUrl() = 0; |
|
darin (slow to review)
2013/03/19 06:12:51
nit: I'm more accustomed to seeing GetURL in chrom
Zachary Kuznia
2013/03/19 06:59:35
Done.
|
| + virtual void RegisterCloseCallback(const base::Closure& callback) = 0; |
|
darin (slow to review)
2013/03/19 06:12:51
nit: might want to add a comment explaining what a
Zachary Kuznia
2013/03/19 06:59:35
Done.
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ |