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

Side by Side Diff: storage/browser/fileapi/file_writer_delegate.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_WRITER_DELEGATE_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ 6 #define STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void Start(scoped_ptr<net::URLRequest> request, 46 void Start(scoped_ptr<net::URLRequest> request,
47 const DelegateWriteCallback& write_callback); 47 const DelegateWriteCallback& write_callback);
48 48
49 // Cancels the current write operation. This will synchronously or 49 // Cancels the current write operation. This will synchronously or
50 // asynchronously call the given write callback (which may result in 50 // asynchronously call the given write callback (which may result in
51 // deleting this). 51 // deleting this).
52 void Cancel(); 52 void Cancel();
53 53
54 virtual void OnReceivedRedirect(net::URLRequest* request, 54 virtual void OnReceivedRedirect(net::URLRequest* request,
55 const net::RedirectInfo& redirect_info, 55 const net::RedirectInfo& redirect_info,
56 bool* defer_redirect) OVERRIDE; 56 bool* defer_redirect) override;
57 virtual void OnAuthRequired(net::URLRequest* request, 57 virtual void OnAuthRequired(net::URLRequest* request,
58 net::AuthChallengeInfo* auth_info) OVERRIDE; 58 net::AuthChallengeInfo* auth_info) override;
59 virtual void OnCertificateRequested( 59 virtual void OnCertificateRequested(
60 net::URLRequest* request, 60 net::URLRequest* request,
61 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; 61 net::SSLCertRequestInfo* cert_request_info) override;
62 virtual void OnSSLCertificateError(net::URLRequest* request, 62 virtual void OnSSLCertificateError(net::URLRequest* request,
63 const net::SSLInfo& ssl_info, 63 const net::SSLInfo& ssl_info,
64 bool fatal) OVERRIDE; 64 bool fatal) override;
65 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; 65 virtual void OnResponseStarted(net::URLRequest* request) override;
66 virtual void OnReadCompleted(net::URLRequest* request, 66 virtual void OnReadCompleted(net::URLRequest* request,
67 int bytes_read) OVERRIDE; 67 int bytes_read) override;
68 68
69 private: 69 private:
70 void OnGetFileInfoAndStartRequest( 70 void OnGetFileInfoAndStartRequest(
71 scoped_ptr<net::URLRequest> request, 71 scoped_ptr<net::URLRequest> request,
72 base::File::Error error, 72 base::File::Error error,
73 const base::File::Info& file_info); 73 const base::File::Info& file_info);
74 void Read(); 74 void Read();
75 void OnDataReceived(int bytes_read); 75 void OnDataReceived(int bytes_read);
76 void Write(); 76 void Write();
77 void OnDataWritten(int write_response); 77 void OnDataWritten(int write_response);
(...skipping 23 matching lines...) Expand all
101 scoped_ptr<net::URLRequest> request_; 101 scoped_ptr<net::URLRequest> request_;
102 102
103 base::WeakPtrFactory<FileWriterDelegate> weak_factory_; 103 base::WeakPtrFactory<FileWriterDelegate> weak_factory_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(FileWriterDelegate); 105 DISALLOW_COPY_AND_ASSIGN(FileWriterDelegate);
106 }; 106 };
107 107
108 } // namespace storage 108 } // namespace storage
109 109
110 #endif // STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ 110 #endif // STORAGE_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_url_request_job_factory.cc ('k') | storage/browser/fileapi/isolated_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698