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

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

Issue 10069016: TabContents -> WebContentsImpl, part 9. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 Job(); 43 Job();
44 ~Job(); 44 ~Job();
45 45
46 FilePath file_path; 46 FilePath file_path;
47 47
48 // The handles to file the MHTML is saved to, for the browser and renderer 48 // The handles to file the MHTML is saved to, for the browser and renderer
49 // processes. 49 // processes.
50 base::PlatformFile browser_file; 50 base::PlatformFile browser_file;
51 IPC::PlatformFileForTransit renderer_file; 51 IPC::PlatformFileForTransit renderer_file;
52 52
53 // The IDs mapping to a specific tab. 53 // The IDs mapping to a specific contents.
54 int process_id; 54 int process_id;
55 int routing_id; 55 int routing_id;
56 56
57 // The callback to call once generation is complete. 57 // The callback to call once generation is complete.
58 GenerateMHTMLCallback callback; 58 GenerateMHTMLCallback callback;
59 }; 59 };
60 60
61 MHTMLGenerationManager(); 61 MHTMLGenerationManager();
62 ~MHTMLGenerationManager(); 62 ~MHTMLGenerationManager();
63 63
(...skipping 18 matching lines...) Expand all
82 // |mhtml_data_size| is -1 if the MHTML generation failed. 82 // |mhtml_data_size| is -1 if the MHTML generation failed.
83 void JobFinished(int job_id, int64 mhtml_data_size); 83 void JobFinished(int job_id, int64 mhtml_data_size);
84 84
85 typedef std::map<int, Job> IDToJobMap; 85 typedef std::map<int, Job> IDToJobMap;
86 IDToJobMap id_to_job_; 86 IDToJobMap id_to_job_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager); 88 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager);
89 }; 89 };
90 90
91 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_ 91 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698