OLD | NEW |
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 #include "content/browser/streams/stream_handle_impl.h" | 5 #include "content/browser/streams/stream_handle_impl.h" |
6 | 6 |
| 7 #include "base/bind.h" |
| 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" |
7 #include "content/browser/streams/stream.h" | 10 #include "content/browser/streams/stream.h" |
8 #include "content/public/browser/browser_thread.h" | |
9 | 11 |
10 namespace content { | 12 namespace content { |
11 | 13 |
12 StreamHandleImpl::StreamHandleImpl(const base::WeakPtr<Stream>& stream, | 14 StreamHandleImpl::StreamHandleImpl(const base::WeakPtr<Stream>& stream, |
13 const GURL& original_url, | 15 const GURL& original_url, |
14 const std::string& mime_type) | 16 const std::string& mime_type) |
15 : stream_(stream), | 17 : stream_(stream), |
16 url_(stream->url()), | 18 url_(stream->url()), |
17 original_url_(original_url), | 19 original_url_(original_url), |
18 mime_type_(mime_type), | 20 mime_type_(mime_type), |
(...skipping 10 matching lines...) Expand all Loading... |
29 | 31 |
30 const GURL& StreamHandleImpl::GetOriginalURL() { | 32 const GURL& StreamHandleImpl::GetOriginalURL() { |
31 return original_url_; | 33 return original_url_; |
32 } | 34 } |
33 | 35 |
34 const std::string& StreamHandleImpl::GetMimeType() { | 36 const std::string& StreamHandleImpl::GetMimeType() { |
35 return mime_type_; | 37 return mime_type_; |
36 } | 38 } |
37 | 39 |
38 } // namespace content | 40 } // namespace content |
OLD | NEW |