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

Unified Diff: components/history/core/browser/download_types.h

Issue 2665243003: add a download slices table into history download db (Closed)
Patch Set: add test file to BUILD.gn Created 3 years, 10 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
Index: components/history/core/browser/download_types.h
diff --git a/components/history/core/browser/download_types.h b/components/history/core/browser/download_types.h
index 1c6650db8caad356fe259af797765aac0483d0f1..7f8fe22cc8654beeb6b125e724be1a0633fc4091 100644
--- a/components/history/core/browser/download_types.h
+++ b/components/history/core/browser/download_types.h
@@ -8,6 +8,8 @@
#include <stdint.h>
#include <iosfwd>
+#include "base/compiler_specific.h"
+
namespace history {
// DownloadState represents the state of a DownloadRow saved into the
@@ -54,7 +56,7 @@ typedef uint32_t DownloadId;
// Utility functions to convert between int and DownloadId for
// serialization to the download database.
-DownloadId IntToDownloadId(int64_t id);
+bool ConvertIntToDownloadId(int64_t id, DownloadId* out) WARN_UNUSED_RESULT;
int64_t DownloadIdToInt(DownloadId id);
} // namespace history
« no previous file with comments | « components/history/core/browser/download_slice_info_unittest.cc ('k') | components/history/core/browser/download_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698