Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: content/browser/streams/stream_handle_impl.h

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/streams/stream.cc ('k') | content/browser/streams/stream_handle_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/public/browser/stream_handle.h" 11 #include "content/public/browser/stream_handle.h"
12 12
13 namespace base { 13 namespace base {
14 class MessageLoopProxy; 14 class SingleThreadTaskRunner;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 class Stream; 19 class Stream;
20 20
21 class StreamHandleImpl : public StreamHandle { 21 class StreamHandleImpl : public StreamHandle {
22 public: 22 public:
23 StreamHandleImpl(const base::WeakPtr<Stream>& stream); 23 StreamHandleImpl(const base::WeakPtr<Stream>& stream);
24 ~StreamHandleImpl() override; 24 ~StreamHandleImpl() override;
25 25
26 private: 26 private:
27 // StreamHandle overrides 27 // StreamHandle overrides
28 const GURL& GetURL() override; 28 const GURL& GetURL() override;
29 void AddCloseListener(const base::Closure& callback) override; 29 void AddCloseListener(const base::Closure& callback) override;
30 30
31 base::WeakPtr<Stream> stream_; 31 base::WeakPtr<Stream> stream_;
32 GURL url_; 32 GURL url_;
33 base::MessageLoopProxy* stream_message_loop_; 33 base::SingleThreadTaskRunner* stream_task_runner_;
34 std::vector<base::Closure> close_listeners_; 34 std::vector<base::Closure> close_listeners_;
35 }; 35 };
36 36
37 } // namespace content 37 } // namespace content
38 38
39 #endif // CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_ 39 #endif // CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
40 40
OLDNEW
« no previous file with comments | « content/browser/streams/stream.cc ('k') | content/browser/streams/stream_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698