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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 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) 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_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/files/file.h" 10 #include "base/files/file.h"
(...skipping 27 matching lines...) Expand all
38 void StreamMHTML(WebContents* web_contents, 38 void StreamMHTML(WebContents* web_contents,
39 base::File file, 39 base::File file,
40 const GenerateMHTMLCallback& callback); 40 const GenerateMHTMLCallback& callback);
41 41
42 // Notification from the renderer that the MHTML generation finished. 42 // Notification from the renderer that the MHTML generation finished.
43 // |mhtml_data_size| contains the size in bytes of the generated MHTML data, 43 // |mhtml_data_size| contains the size in bytes of the generated MHTML data,
44 // or -1 in case of failure. 44 // or -1 in case of failure.
45 void MHTMLGenerated(int job_id, int64 mhtml_data_size); 45 void MHTMLGenerated(int job_id, int64 mhtml_data_size);
46 46
47 private: 47 private:
48 friend struct DefaultSingletonTraits<MHTMLGenerationManager>; 48 friend struct base::DefaultSingletonTraits<MHTMLGenerationManager>;
49 class Job; 49 class Job;
50 50
51 MHTMLGenerationManager(); 51 MHTMLGenerationManager();
52 virtual ~MHTMLGenerationManager(); 52 virtual ~MHTMLGenerationManager();
53 53
54 // Called on the file thread to create |file|. 54 // Called on the file thread to create |file|.
55 void CreateFile(int job_id, 55 void CreateFile(int job_id,
56 const base::FilePath& file, 56 const base::FilePath& file,
57 base::ProcessHandle renderer_process); 57 base::ProcessHandle renderer_process);
58 58
(...skipping 20 matching lines...) Expand all
79 79
80 typedef std::map<int, Job*> IDToJobMap; 80 typedef std::map<int, Job*> IDToJobMap;
81 IDToJobMap id_to_job_; 81 IDToJobMap id_to_job_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager); 83 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager);
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace content
87 87
88 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ 88 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/shared_worker_devtools_manager.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698