Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / content / browser / streams / stream_handle_impl.h
blobd2bd94def8e993fb23772a39263b6c0ef49f10fc
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_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
8 #include <vector>
10 #include "base/memory/weak_ptr.h"
11 #include "content/public/browser/stream_handle.h"
13 namespace base {
14 class MessageLoopProxy;
17 namespace content {
19 class Stream;
21 class StreamHandleImpl : public StreamHandle {
22 public:
23 StreamHandleImpl(const base::WeakPtr<Stream>& stream);
24 ~StreamHandleImpl() override;
26 private:
27 // StreamHandle overrides
28 const GURL& GetURL() override;
29 void AddCloseListener(const base::Closure& callback) override;
31 base::WeakPtr<Stream> stream_;
32 GURL url_;
33 base::MessageLoopProxy* stream_message_loop_;
34 std::vector<base::Closure> close_listeners_;
37 } // namespace content
39 #endif // CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_