| 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 CONTENT_BROWSER_RENDERER_HOST_REDIRECT_TO_FILE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_REDIRECT_TO_FILE_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_REDIRECT_TO_FILE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_REDIRECT_TO_FILE_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 int* bytes_read) OVERRIDE; | 49 int* bytes_read) OVERRIDE; |
| 50 virtual bool OnResponseCompleted(int request_id, | 50 virtual bool OnResponseCompleted(int request_id, |
| 51 const net::URLRequestStatus& status, | 51 const net::URLRequestStatus& status, |
| 52 const std::string& security_info) OVERRIDE; | 52 const std::string& security_info) OVERRIDE; |
| 53 virtual void OnRequestClosed() OVERRIDE; | 53 virtual void OnRequestClosed() OVERRIDE; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 virtual ~RedirectToFileResourceHandler(); | 56 virtual ~RedirectToFileResourceHandler(); |
| 57 void DidCreateTemporaryFile(base::PlatformFileError error_code, | 57 void DidCreateTemporaryFile(base::PlatformFileError error_code, |
| 58 base::PassPlatformFile file_handle, | 58 base::PassPlatformFile file_handle, |
| 59 FilePath file_path); | 59 const FilePath& file_path); |
| 60 void DidWriteToFile(int result); | 60 void DidWriteToFile(int result); |
| 61 bool WriteMore(); | 61 bool WriteMore(); |
| 62 bool BufIsFull() const; | 62 bool BufIsFull() const; |
| 63 | 63 |
| 64 base::WeakPtrFactory<RedirectToFileResourceHandler> weak_factory_; | 64 base::WeakPtrFactory<RedirectToFileResourceHandler> weak_factory_; |
| 65 | 65 |
| 66 ResourceDispatcherHost* host_; | 66 ResourceDispatcherHost* host_; |
| 67 int process_id_; | 67 int process_id_; |
| 68 int request_id_; | 68 int request_id_; |
| 69 | 69 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 91 bool completed_during_write_; | 91 bool completed_during_write_; |
| 92 net::URLRequestStatus completed_status_; | 92 net::URLRequestStatus completed_status_; |
| 93 std::string completed_security_info_; | 93 std::string completed_security_info_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(RedirectToFileResourceHandler); | 95 DISALLOW_COPY_AND_ASSIGN(RedirectToFileResourceHandler); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace content | 98 } // namespace content |
| 99 | 99 |
| 100 #endif // CONTENT_BROWSER_RENDERER_HOST_REDIRECT_TO_FILE_RESOURCE_HANDLER_H_ | 100 #endif // CONTENT_BROWSER_RENDERER_HOST_REDIRECT_TO_FILE_RESOURCE_HANDLER_H_ |
| OLD | NEW |