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

Unified Diff: components/crx_file/crx_file.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/crx_file/constants.h ('k') | components/crx_file/crx_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crx_file/crx_file.h
diff --git a/components/crx_file/crx_file.h b/components/crx_file/crx_file.h
index bdb27db263466492258faa84810711fde55d023d..bfd6000d08e8bc2fa19bcd77af67295208c14967 100644
--- a/components/crx_file/crx_file.h
+++ b/components/crx_file/crx_file.h
@@ -8,8 +8,9 @@
#include <string>
#include <vector>
+#include <stddef.h>
+#include <stdint.h>
#include <sys/types.h>
-#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
namespace base {
@@ -32,9 +33,9 @@ class CrxFile {
// a struct without manual parsing.
struct Header {
char magic[kCrxFileHeaderMagicSize];
- uint32 version;
- uint32 key_size; // The size of the public key, in bytes.
- uint32 signature_size; // The size of the signature, in bytes.
+ uint32_t version;
+ uint32_t key_size; // The size of the public key, in bytes.
+ uint32_t signature_size; // The size of the signature, in bytes.
// An ASN.1-encoded PublicKeyInfo structure follows.
// The signature follows.
};
@@ -59,8 +60,8 @@ class CrxFile {
// additional information.
// Use this constructor and then .header() to obtain the Header
// for writing out to a CRX file.
- static scoped_ptr<CrxFile> Create(const uint32 key_size,
- const uint32 signature_size,
+ static scoped_ptr<CrxFile> Create(const uint32_t key_size,
+ const uint32_t signature_size,
Error* error);
// Returns the header structure for writing out to a CRX file.
« no previous file with comments | « components/crx_file/constants.h ('k') | components/crx_file/crx_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698