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_SAVE_FILE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_SAVE_FILE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/memory/ref_counted.h" |
10 #include "content/browser/loader/resource_handler.h" | 11 #include "content/browser/loader/resource_handler.h" |
11 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class SaveFileManager; | 15 class SaveFileManager; |
15 | 16 |
16 // Forwards data to the save thread. | 17 // Forwards data to the save thread. |
17 class SaveFileResourceHandler : public ResourceHandler { | 18 class SaveFileResourceHandler : public ResourceHandler { |
18 public: | 19 public: |
19 SaveFileResourceHandler(int render_process_host_id, | 20 SaveFileResourceHandler(int render_process_host_id, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int64 content_length_; | 83 int64 content_length_; |
83 SaveFileManager* save_manager_; | 84 SaveFileManager* save_manager_; |
84 | 85 |
85 static const int kReadBufSize = 32768; // bytes | 86 static const int kReadBufSize = 32768; // bytes |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(SaveFileResourceHandler); | 88 DISALLOW_COPY_AND_ASSIGN(SaveFileResourceHandler); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace content | 91 } // namespace content |
91 | 92 |
92 #endif // CONTENT_BROWSER_RENDERER_HOST_SAVE_FILE_RESOURCE_HANDLER_H_ | 93 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_FILE_RESOURCE_HANDLER_H_ |
OLD | NEW |