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

Side by Side Diff: storage/browser/blob/blob_url_request_job.h

Issue 669603008: Standardize usage of virtual/override/final in storage/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ 6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 class STORAGE_EXPORT BlobURLRequestJob 36 class STORAGE_EXPORT BlobURLRequestJob
37 : public net::URLRequestJob { 37 : public net::URLRequestJob {
38 public: 38 public:
39 BlobURLRequestJob(net::URLRequest* request, 39 BlobURLRequestJob(net::URLRequest* request,
40 net::NetworkDelegate* network_delegate, 40 net::NetworkDelegate* network_delegate,
41 const scoped_refptr<BlobData>& blob_data, 41 const scoped_refptr<BlobData>& blob_data,
42 storage::FileSystemContext* file_system_context, 42 storage::FileSystemContext* file_system_context,
43 base::MessageLoopProxy* resolving_message_loop_proxy); 43 base::MessageLoopProxy* resolving_message_loop_proxy);
44 44
45 // net::URLRequestJob methods. 45 // net::URLRequestJob methods.
46 virtual void Start() override; 46 void Start() override;
47 virtual void Kill() override; 47 void Kill() override;
48 virtual bool ReadRawData(net::IOBuffer* buf, 48 bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) override;
49 int buf_size, 49 bool GetMimeType(std::string* mime_type) const override;
50 int* bytes_read) override; 50 void GetResponseInfo(net::HttpResponseInfo* info) override;
51 virtual bool GetMimeType(std::string* mime_type) const override; 51 int GetResponseCode() const override;
52 virtual void GetResponseInfo(net::HttpResponseInfo* info) override; 52 void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers) override;
53 virtual int GetResponseCode() const override;
54 virtual void SetExtraRequestHeaders(
55 const net::HttpRequestHeaders& headers) override;
56 53
57 protected: 54 protected:
58 virtual ~BlobURLRequestJob(); 55 ~BlobURLRequestJob() override;
59 56
60 private: 57 private:
61 typedef std::map<size_t, FileStreamReader*> IndexToReaderMap; 58 typedef std::map<size_t, FileStreamReader*> IndexToReaderMap;
62 59
63 // For preparing for read: get the size, apply the range and perform seek. 60 // For preparing for read: get the size, apply the range and perform seek.
64 void DidStart(); 61 void DidStart();
65 bool AddItemLength(size_t index, int64 item_length); 62 bool AddItemLength(size_t index, int64 item_length);
66 void CountSize(); 63 void CountSize();
67 void DidCountSize(int error); 64 void DidCountSize(int error);
68 void DidGetFileItemLength(size_t index, int64 result); 65 void DidGetFileItemLength(size_t index, int64 result);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_ptr<net::HttpResponseInfo> response_info_; 117 scoped_ptr<net::HttpResponseInfo> response_info_;
121 118
122 base::WeakPtrFactory<BlobURLRequestJob> weak_factory_; 119 base::WeakPtrFactory<BlobURLRequestJob> weak_factory_;
123 120
124 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); 121 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob);
125 }; 122 };
126 123
127 } // namespace storage 124 } // namespace storage
128 125
129 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_ 126 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_data_handle.h ('k') | storage/browser/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698