diff options
author | Torne (Richard Coles) <torne@google.com> | 2014-03-18 10:20:56 +0000 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2014-03-18 10:20:56 +0000 |
commit | a1401311d1ab56c4ed0a474bd38c108f75cb0cd9 (patch) | |
tree | 3437151d9ae1ce20a1e53a0d98c19ca01c786394 /content/browser/download/mhtml_generation_manager.h | |
parent | af5066f1e36c6579e74752647e6c584438f80f94 (diff) | |
download | chromium_org-a1401311d1ab56c4ed0a474bd38c108f75cb0cd9.tar.gz |
Merge from Chromium at DEPS revision 257591
This commit was generated by merge_to_master.py.
Change-Id: I0010df2ec3fbb5d4947cd026de2feb150ce7a6b5
Diffstat (limited to 'content/browser/download/mhtml_generation_manager.h')
-rw-r--r-- | content/browser/download/mhtml_generation_manager.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/content/browser/download/mhtml_generation_manager.h b/content/browser/download/mhtml_generation_manager.h index 0fff4a35c3..bd178cb03d 100644 --- a/content/browser/download/mhtml_generation_manager.h +++ b/content/browser/download/mhtml_generation_manager.h @@ -7,8 +7,8 @@ #include <map> +#include "base/files/file.h" #include "base/memory/singleton.h" -#include "base/platform_file.h" #include "base/process/process.h" #include "ipc/ipc_platform_file.h" @@ -36,7 +36,7 @@ class MHTMLGenerationManager { // Instructs the render view to generate a MHTML representation of the current // page for |web_contents|. void StreamMHTML(WebContents* web_contents, - const base::PlatformFile file, + base::File file, const GenerateMHTMLCallback& callback); // Notification from the renderer that the MHTML generation finished. @@ -57,15 +57,14 @@ class MHTMLGenerationManager { base::ProcessHandle renderer_process); // Called on the UI thread when the file that should hold the MHTML data has - // been created. This returns a handle to that file for the browser process - // and one for the renderer process. These handles are - // kInvalidPlatformFileValue if the file could not be opened. - void FileHandleAvailable(int job_id, - base::PlatformFile browser_file, - IPC::PlatformFileForTransit renderer_file); + // been created. This receives a handle to that file for the browser process + // and one for the renderer process. + void FileAvailable(int job_id, + base::File browser_file, + IPC::PlatformFileForTransit renderer_file); // Called on the file thread to close the file the MHTML was saved to. - void CloseFile(base::PlatformFile file); + void CloseFile(base::File file); // Called on the UI thread when a job has been processed (successfully or // not). Closes the file and removes the job from the job map. @@ -78,7 +77,7 @@ class MHTMLGenerationManager { // Called when the render process connected to a job exits. void RenderProcessExited(Job* job); - typedef std::map<int, Job> IDToJobMap; + typedef std::map<int, Job*> IDToJobMap; IDToJobMap id_to_job_; DISALLOW_COPY_AND_ASSIGN(MHTMLGenerationManager); |