OLD | NEW |
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 WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ | 6 #define WEBKIT_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
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 GURL& new_url, | 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; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 fileapi | 108 } // namespace fileapi |
109 | 109 |
110 #endif // WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ | 110 #endif // WEBKIT_BROWSER_FILEAPI_FILE_WRITER_DELEGATE_H_ |
OLD | NEW |