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

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

Issue 2368913002: Fix stream errors that occur after a stream starts not propagating. (Closed)
Patch Set: fix tests Created 4 years, 2 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
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_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" 8 #include "base/macros.h"
9 #include "content/browser/streams/stream_read_observer.h" 9 #include "content/browser/streams/stream_read_observer.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 scoped_refptr<content::Stream> stream_; 47 scoped_refptr<content::Stream> stream_;
48 bool headers_set_; 48 bool headers_set_;
49 scoped_refptr<net::IOBuffer> pending_buffer_; 49 scoped_refptr<net::IOBuffer> pending_buffer_;
50 int pending_buffer_size_; 50 int pending_buffer_size_;
51 std::unique_ptr<net::HttpResponseInfo> response_info_; 51 std::unique_ptr<net::HttpResponseInfo> response_info_;
52 52
53 int total_bytes_read_; 53 int total_bytes_read_;
54 int max_range_; 54 int max_range_;
55 bool request_failed_; 55 bool request_failed_;
56 int error_code_; // Only set if 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698