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