| 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 #ifndef CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ | 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ |
| 6 #define CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ | 6 #define CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/browser/streams/stream_read_observer.h" |
| 10 #include "content/common/content_export.h" |
| 8 #include "net/http/http_status_code.h" | 11 #include "net/http/http_status_code.h" |
| 9 #include "net/url_request/url_request_job.h" | 12 #include "net/url_request/url_request_job.h" |
| 10 #include "content/browser/streams/stream_read_observer.h" | |
| 11 #include "content/common/content_export.h" | |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 class Stream; | 16 class Stream; |
| 16 | 17 |
| 17 // A request job that handles reading stream URLs. | 18 // A request job that handles reading stream URLs. |
| 18 class CONTENT_EXPORT StreamURLRequestJob | 19 class CONTENT_EXPORT StreamURLRequestJob |
| 19 : public net::URLRequestJob, | 20 : public net::URLRequestJob, |
| 20 public StreamReadObserver { | 21 public StreamReadObserver { |
| 21 public: | 22 public: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool request_failed_; | 56 bool request_failed_; |
| 56 | 57 |
| 57 base::WeakPtrFactory<StreamURLRequestJob> weak_factory_; | 58 base::WeakPtrFactory<StreamURLRequestJob> weak_factory_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(StreamURLRequestJob); | 60 DISALLOW_COPY_AND_ASSIGN(StreamURLRequestJob); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace content | 63 } // namespace content |
| 63 | 64 |
| 64 #endif // CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ | 65 #endif // CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ |
| OLD | NEW |