OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MHTML_GENERATION_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
12 #include "base/process.h" | 12 #include "base/process.h" |
13 #include "content/browser/browser_thread.h" | |
14 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/public/browser/browser_thread.h" |
15 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 class TabContents; | 18 class TabContents; |
19 | 19 |
20 class CONTENT_EXPORT MHTMLGenerationManager | 20 class CONTENT_EXPORT MHTMLGenerationManager |
21 : public base::RefCountedThreadSafe<MHTMLGenerationManager, | 21 : public base::RefCountedThreadSafe<MHTMLGenerationManager, |
22 BrowserThread::DeleteOnUIThread> { | 22 BrowserThread::DeleteOnUIThread> { |
23 public: | 23 public: |
24 MHTMLGenerationManager(); | 24 MHTMLGenerationManager(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // |mhtml_data_size| is -1 if the MHTML generation failed. | 76 // |mhtml_data_size| is -1 if the MHTML generation failed. |
77 void JobFinished(int job_id, int64 mhtml_data_size); | 77 void JobFinished(int job_id, int64 mhtml_data_size); |
78 | 78 |
79 typedef std::map<int, Job> IDToJobMap; | 79 typedef std::map<int, Job> IDToJobMap; |
80 IDToJobMap id_to_job_; | 80 IDToJobMap id_to_job_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager); | 82 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager); |
83 }; | 83 }; |
84 | 84 |
85 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ | 85 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ |
OLD | NEW |