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

Side by Side Diff: components/history/content/browser/download_constants_utils.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONSTANTS_UTILS_H_ 5 #ifndef COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONSTANTS_UTILS_H_
6 #define COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONSTANTS_UTILS_H_ 6 #define COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONSTANTS_UTILS_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
10 #include "components/history/core/browser/download_types.h" 12 #include "components/history/core/browser/download_types.h"
11 #include "content/public/browser/download_danger_type.h" 13 #include "content/public/browser/download_danger_type.h"
12 #include "content/public/browser/download_interrupt_reasons.h" 14 #include "content/public/browser/download_interrupt_reasons.h"
13 #include "content/public/browser/download_item.h" 15 #include "content/public/browser/download_item.h"
14 16
15 namespace history { 17 namespace history {
16 18
17 // Utility functions to convert between content::DownloadItem::DownloadState 19 // Utility functions to convert between content::DownloadItem::DownloadState
(...skipping 15 matching lines...) Expand all
33 // meaning in history, but have a different type to avoid bugs due to 35 // meaning in history, but have a different type to avoid bugs due to
34 // implicit conversions). 36 // implicit conversions).
35 content::DownloadInterruptReason ToContentDownloadInterruptReason( 37 content::DownloadInterruptReason ToContentDownloadInterruptReason(
36 DownloadInterruptReason interrupt_reason); 38 DownloadInterruptReason interrupt_reason);
37 DownloadInterruptReason ToHistoryDownloadInterruptReason( 39 DownloadInterruptReason ToHistoryDownloadInterruptReason(
38 content::DownloadInterruptReason interrupt_reason); 40 content::DownloadInterruptReason interrupt_reason);
39 41
40 // Utility functions to convert between content download id values and 42 // Utility functions to convert between content download id values and
41 // history::DownloadId type (value have no meaning in history, except 43 // history::DownloadId type (value have no meaning in history, except
42 // for kInvalidDownloadId). 44 // for kInvalidDownloadId).
43 uint32 ToContentDownloadId(DownloadId id); 45 uint32_t ToContentDownloadId(DownloadId id);
44 DownloadId ToHistoryDownloadId(uint32 id); 46 DownloadId ToHistoryDownloadId(uint32_t id);
45 } // namespace history 47 } // namespace history
46 48
47 #endif // COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONSTANTS_UTILS_H_ 49 #endif // COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONSTANTS_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698