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