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

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

Issue 166243002: Cleanup: Remove unneeded browser_thread.h includes in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build, address nits Created 6 years, 10 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 | Annotate | Revision Log
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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
11 #include "content/public/browser/stream_handle.h" 10 #include "content/public/browser/stream_handle.h"
12 11
12 namespace base {
13 class MessageLoopProxy;
14 }
15
13 namespace content { 16 namespace content {
14 17
15 class Stream; 18 class Stream;
16 19
17 class StreamHandleImpl : public StreamHandle { 20 class StreamHandleImpl : public StreamHandle {
18 public: 21 public:
19 StreamHandleImpl(const base::WeakPtr<Stream>& stream, 22 StreamHandleImpl(const base::WeakPtr<Stream>& stream,
20 const GURL& original_url, 23 const GURL& original_url,
21 const std::string& mime_type); 24 const std::string& mime_type);
22 virtual ~StreamHandleImpl(); 25 virtual ~StreamHandleImpl();
23 26
24 private: 27 private:
25 // StreamHandle overrides 28 // StreamHandle overrides
26 virtual const GURL& GetURL() OVERRIDE; 29 virtual const GURL& GetURL() OVERRIDE;
27 virtual const GURL& GetOriginalURL() OVERRIDE; 30 virtual const GURL& GetOriginalURL() OVERRIDE;
28 virtual const std::string& GetMimeType() OVERRIDE; 31 virtual const std::string& GetMimeType() OVERRIDE;
29 32
30 base::WeakPtr<Stream> stream_; 33 base::WeakPtr<Stream> stream_;
31 GURL url_; 34 GURL url_;
32 GURL original_url_; 35 GURL original_url_;
33 std::string mime_type_; 36 std::string mime_type_;
34 base::MessageLoopProxy* stream_message_loop_; 37 base::MessageLoopProxy* stream_message_loop_;
35 }; 38 };
36 39
37 } // namespace content 40 } // namespace content
38 41
39 #endif // CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_ 42 #endif // CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
40 43
OLDNEW
« no previous file with comments | « content/browser/streams/stream_context.cc ('k') | content/browser/streams/stream_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698