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

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

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: fix exports for switches, content_main Created 9 years, 3 months 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
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" 13 #include "content/browser/browser_thread.h"
14 #include "content/common/content_export.h"
14 #include "ipc/ipc_platform_file.h" 15 #include "ipc/ipc_platform_file.h"
15 16
16 class FilePath; 17 class FilePath;
17 class TabContents; 18 class TabContents;
18 19
19 class MHTMLGenerationManager 20 class CONTENT_EXPORT MHTMLGenerationManager
20 : public base::RefCountedThreadSafe<MHTMLGenerationManager, 21 : public base::RefCountedThreadSafe<MHTMLGenerationManager,
21 BrowserThread::DeleteOnUIThread> { 22 BrowserThread::DeleteOnUIThread> {
22 public: 23 public:
23 MHTMLGenerationManager(); 24 MHTMLGenerationManager();
24 ~MHTMLGenerationManager(); 25 ~MHTMLGenerationManager();
25 26
26 // Instructs the render view to generate a MHTML representation of the current 27 // Instructs the render view to generate a MHTML representation of the current
27 // page for |tab_contents|. 28 // page for |tab_contents|.
28 void GenerateMHTML(TabContents* tab_contents, const FilePath& file); 29 void GenerateMHTML(TabContents* tab_contents, const FilePath& file);
29 30
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // not). Closes the file and removes the job from the job map. 73 // not). Closes the file and removes the job from the job map.
73 void JobFinished(int job_id, bool success); 74 void JobFinished(int job_id, bool success);
74 75
75 typedef std::map<int, Job> IDToJobMap; 76 typedef std::map<int, Job> IDToJobMap;
76 IDToJobMap id_to_job_; 77 IDToJobMap id_to_job_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager); 79 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager);
79 }; 80 };
80 81
81 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ 82 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698