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

Side by Side Diff: extensions/common/crx_file.cc

Issue 12578008: Move CrxFile, FileReader, ExtensionResource to src/extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « extensions/common/crx_file.h ('k') | extensions/common/extension_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/extensions/crx_file.h" 5 #include "extensions/common/crx_file.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace { 9 namespace {
10 10
11 // The current version of the crx format. 11 // The current version of the crx format.
12 static const uint32 kCurrentVersion = 2; 12 static const uint32 kCurrentVersion = 2;
13 13
14 // The maximum size the crx parser will tolerate for a public key. 14 // The maximum size the crx parser will tolerate for a public key.
15 static const uint32 kMaxPublicKeySize = 1 << 16; 15 static const uint32 kMaxPublicKeySize = 1 << 16;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 else if (header.signature_size > kMaxSignatureSize) 59 else if (header.signature_size > kMaxSignatureSize)
60 *error = kInvalidSignatureTooLarge; 60 *error = kInvalidSignatureTooLarge;
61 else if (header.signature_size == 0) 61 else if (header.signature_size == 0)
62 *error = kInvalidSignatureTooSmall; 62 *error = kInvalidSignatureTooSmall;
63 else 63 else
64 valid = true; 64 valid = true;
65 return valid; 65 return valid;
66 } 66 }
67 67
68 } // namespace extensions 68 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/crx_file.h ('k') | extensions/common/extension_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698