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

Unified Diff: content/browser/download/mhtml_generation_manager.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/file_metadata_mac.h ('k') | content/browser/download/save_file_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mhtml_generation_manager.h
diff --git a/content/browser/download/mhtml_generation_manager.h b/content/browser/download/mhtml_generation_manager.h
index 54b8733dd3c3ce9547a2a4133b8b12a1803affc1..ffdb95b680a5398c3bfeb3927e00e0448c05e3a5 100644
--- a/content/browser/download/mhtml_generation_manager.h
+++ b/content/browser/download/mhtml_generation_manager.h
@@ -12,7 +12,9 @@
#include "base/process.h"
#include "ipc/ipc_platform_file.h"
+namespace base {
class FilePath;
+}
namespace content {
class WebContents;
@@ -21,13 +23,13 @@ class MHTMLGenerationManager {
public:
static MHTMLGenerationManager* GetInstance();
- typedef base::Callback<void(const FilePath& /* path to the MHTML file */,
+ typedef base::Callback<void(const base::FilePath& /* path to the MHTML file */,
int64 /* size of the file */)> GenerateMHTMLCallback;
// Instructs the render view to generate a MHTML representation of the current
// page for |web_contents|.
void GenerateMHTML(WebContents* web_contents,
- const FilePath& file,
+ const base::FilePath& file,
const GenerateMHTMLCallback& callback);
// Notification from the renderer that the MHTML generation finished.
@@ -42,7 +44,7 @@ class MHTMLGenerationManager {
Job();
~Job();
- FilePath file_path;
+ base::FilePath file_path;
// The handles to file the MHTML is saved to, for the browser and renderer
// processes.
@@ -62,7 +64,7 @@ class MHTMLGenerationManager {
// Called on the file thread to create |file|.
void CreateFile(int job_id,
- const FilePath& file,
+ const base::FilePath& file,
base::ProcessHandle renderer_process);
// Called on the UI thread when the file that should hold the MHTML data has
« no previous file with comments | « content/browser/download/file_metadata_mac.h ('k') | content/browser/download/save_file_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698