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

Side by Side Diff: storage/browser/fileapi/file_system_url_request_job.h

Issue 624063003: Replacing the OVERRIDE with override and FINAL with final in storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the error 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_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 22 matching lines...) Expand all
33 class STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob 33 class STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob
34 : public net::URLRequestJob { 34 : public net::URLRequestJob {
35 public: 35 public:
36 FileSystemURLRequestJob( 36 FileSystemURLRequestJob(
37 net::URLRequest* request, 37 net::URLRequest* request,
38 net::NetworkDelegate* network_delegate, 38 net::NetworkDelegate* network_delegate,
39 const std::string& storage_domain, 39 const std::string& storage_domain,
40 FileSystemContext* file_system_context); 40 FileSystemContext* file_system_context);
41 41
42 // URLRequestJob methods: 42 // URLRequestJob methods:
43 virtual void Start() OVERRIDE; 43 virtual void Start() override;
44 virtual void Kill() OVERRIDE; 44 virtual void Kill() override;
45 virtual bool ReadRawData(net::IOBuffer* buf, 45 virtual bool ReadRawData(net::IOBuffer* buf,
46 int buf_size, 46 int buf_size,
47 int* bytes_read) OVERRIDE; 47 int* bytes_read) override;
48 virtual bool IsRedirectResponse(GURL* location, 48 virtual bool IsRedirectResponse(GURL* location,
49 int* http_status_code) OVERRIDE; 49 int* http_status_code) override;
50 virtual void SetExtraRequestHeaders( 50 virtual void SetExtraRequestHeaders(
51 const net::HttpRequestHeaders& headers) OVERRIDE; 51 const net::HttpRequestHeaders& headers) override;
52 virtual void GetResponseInfo(net::HttpResponseInfo* info) OVERRIDE; 52 virtual void GetResponseInfo(net::HttpResponseInfo* info) override;
53 virtual int GetResponseCode() const OVERRIDE; 53 virtual int GetResponseCode() const override;
54 54
55 // FilterContext methods (via URLRequestJob): 55 // FilterContext methods (via URLRequestJob):
56 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 56 virtual bool GetMimeType(std::string* mime_type) const override;
57 57
58 private: 58 private:
59 class CallbackDispatcher; 59 class CallbackDispatcher;
60 60
61 virtual ~FileSystemURLRequestJob(); 61 virtual ~FileSystemURLRequestJob();
62 62
63 void StartAsync(); 63 void StartAsync();
64 void DidAttemptAutoMount(base::File::Error result); 64 void DidAttemptAutoMount(base::File::Error result);
65 void DidGetMetadata(base::File::Error error_code, 65 void DidGetMetadata(base::File::Error error_code,
66 const base::File::Info& file_info); 66 const base::File::Info& file_info);
67 void DidRead(int result); 67 void DidRead(int result);
68 void NotifyFailed(int rv); 68 void NotifyFailed(int rv);
69 69
70 const std::string storage_domain_; 70 const std::string storage_domain_;
71 FileSystemContext* file_system_context_; 71 FileSystemContext* file_system_context_;
72 scoped_ptr<storage::FileStreamReader> reader_; 72 scoped_ptr<storage::FileStreamReader> reader_;
73 FileSystemURL url_; 73 FileSystemURL url_;
74 bool is_directory_; 74 bool is_directory_;
75 scoped_ptr<net::HttpResponseInfo> response_info_; 75 scoped_ptr<net::HttpResponseInfo> response_info_;
76 int64 remaining_bytes_; 76 int64 remaining_bytes_;
77 net::HttpByteRange byte_range_; 77 net::HttpByteRange byte_range_;
78 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; 78 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); 80 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob);
81 }; 81 };
82 82
83 } // namespace storage 83 } // namespace storage
84 84
85 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 85 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_quota_client.h ('k') | storage/browser/fileapi/file_system_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698