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

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

Issue 2822593003: Remove URLRequestJob::GetResponseCode implementations (Closed)
Patch Set: Fix Created 3 years, 8 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 15 matching lines...) Expand all
26 26
27 // StreamObserver methods. 27 // StreamObserver methods.
28 void OnDataAvailable(Stream* stream) override; 28 void OnDataAvailable(Stream* stream) override;
29 29
30 // net::URLRequestJob methods. 30 // net::URLRequestJob methods.
31 void Start() override; 31 void Start() override;
32 void Kill() override; 32 void Kill() override;
33 int ReadRawData(net::IOBuffer* buf, int buf_size) override; 33 int ReadRawData(net::IOBuffer* buf, int buf_size) override;
34 bool GetMimeType(std::string* mime_type) const override; 34 bool GetMimeType(std::string* mime_type) const override;
35 void GetResponseInfo(net::HttpResponseInfo* info) override; 35 void GetResponseInfo(net::HttpResponseInfo* info) override;
36 int GetResponseCode() const override;
37 int64_t GetTotalReceivedBytes() const override; 36 int64_t GetTotalReceivedBytes() const override;
38 37
39 protected: 38 protected:
40 ~StreamURLRequestJob() override; 39 ~StreamURLRequestJob() override;
41 40
42 private: 41 private:
43 void DidStart(); 42 void DidStart();
44 void NotifyFailure(int); 43 void NotifyFailure(int);
45 void HeadersCompleted(net::HttpStatusCode status_code); 44 void HeadersCompleted(net::HttpStatusCode status_code);
46 void ClearStream(); 45 void ClearStream();
(...skipping 11 matching lines...) Expand all
58 int error_code_; // Only set if request_failed_. 57 int error_code_; // Only set if request_failed_.
59 58
60 base::WeakPtrFactory<StreamURLRequestJob> weak_factory_; 59 base::WeakPtrFactory<StreamURLRequestJob> weak_factory_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(StreamURLRequestJob); 61 DISALLOW_COPY_AND_ASSIGN(StreamURLRequestJob);
63 }; 62 };
64 63
65 } // namespace content 64 } // namespace content
66 65
67 #endif // CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_ 66 #endif // CONTENT_BROWSER_STREAMS_STREAM_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/streams/stream_url_request_job.cc » ('j') | content/browser/streams/stream_url_request_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698