Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/browser/download/mhtml_generation_manager.h

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/download/drag_download_util.cc ('k') | content/browser/download/save_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/download/drag_download_util.cc ('k') | content/browser/download/save_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698