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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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
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 1c0a51eb4ca32ee7caebcc5d282ac39669aa7865..e697e134043ca90666683bbc423ca49c848de3c2 100644
--- a/content/browser/download/mhtml_generation_manager.h
+++ b/content/browser/download/mhtml_generation_manager.h
@@ -5,9 +5,12 @@
#ifndef CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_
#define CONTENT_BROWSER_DOWNLOAD_MHTML_GENERATION_MANAGER_H_
+#include <stdint.h>
+
#include <map>
#include "base/files/file.h"
+#include "base/macros.h"
#include "base/memory/singleton.h"
#include "base/process/process.h"
#include "ipc/ipc_platform_file.h"
@@ -29,7 +32,7 @@ class MHTMLGenerationManager {
// GenerateMHTMLCallback is called to report completion and status of MHTML
// generation. On success |file_size| indicates the size of the
// generated file. On failure |file_size| is -1.
- typedef base::Callback<void(int64 file_size)> GenerateMHTMLCallback;
+ typedef base::Callback<void(int64_t file_size)> GenerateMHTMLCallback;
// Instructs the render view to generate a MHTML representation of the current
// page for |web_contents|.
@@ -61,7 +64,7 @@ class MHTMLGenerationManager {
void JobFinished(int job_id, JobStatus job_status);
// Called on the UI thread after the file got finalized and we have its size.
- void OnFileClosed(int job_id, JobStatus job_status, int64 file_size);
+ void OnFileClosed(int job_id, JobStatus job_status, int64_t file_size);
// Creates and registers a new job.
int NewJob(WebContents* web_contents, const GenerateMHTMLCallback& callback);
« no previous file with comments | « content/browser/download/mhtml_generation_browsertest.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698