| 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_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 11 #include "content/browser/loader/resource_handler.h" | 14 #include "content/browser/loader/resource_handler.h" |
| 12 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 13 | 16 |
| 14 namespace net { | 17 namespace net { |
| 15 class URLRequest; | 18 class URLRequest; |
| 16 } | 19 } |
| 17 | 20 |
| 18 namespace content { | 21 namespace content { |
| 19 class SaveFileManager; | 22 class SaveFileManager; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 77 |
| 75 private: | 78 private: |
| 76 int save_item_id_; | 79 int save_item_id_; |
| 77 int save_package_id_; | 80 int save_package_id_; |
| 78 int render_process_id_; | 81 int render_process_id_; |
| 79 int render_frame_routing_id_; | 82 int render_frame_routing_id_; |
| 80 scoped_refptr<net::IOBuffer> read_buffer_; | 83 scoped_refptr<net::IOBuffer> read_buffer_; |
| 81 std::string content_disposition_; | 84 std::string content_disposition_; |
| 82 GURL url_; | 85 GURL url_; |
| 83 GURL final_url_; | 86 GURL final_url_; |
| 84 int64 content_length_; | 87 int64_t content_length_; |
| 85 SaveFileManager* save_manager_; | 88 SaveFileManager* save_manager_; |
| 86 | 89 |
| 87 static const int kReadBufSize = 32768; // bytes | 90 static const int kReadBufSize = 32768; // bytes |
| 88 | 91 |
| 89 DISALLOW_COPY_AND_ASSIGN(SaveFileResourceHandler); | 92 DISALLOW_COPY_AND_ASSIGN(SaveFileResourceHandler); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace content | 95 } // namespace content |
| 93 | 96 |
| 94 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ | 97 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ |
| OLD | NEW |