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

Side by Side Diff: chrome/browser/component_updater/component_unpacker.h

Issue 42003002: Extract supported codecs from CDM component manifest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added includes; removed DLOG Created 7 years, 1 month 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 | « no previous file | chrome/browser/component_updater/component_unpacker.cc » ('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 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/json/json_file_value_serializer.h"
13 #include "base/memory/scoped_ptr.h"
12 14
13 class ComponentInstaller; 15 class ComponentInstaller;
14 class ComponentPatcher; 16 class ComponentPatcher;
15 17
18 // Deserializes the CRX manifest. The top level must be a dictionary.
19 scoped_ptr<base::DictionaryValue> ReadManifest(
20 const base::FilePath& unpack_path);
21
16 // In charge of unpacking the component CRX package and verifying that it is 22 // In charge of unpacking the component CRX package and verifying that it is
17 // well formed and the cryptographic signature is correct. If there is no 23 // well formed and the cryptographic signature is correct. If there is no
18 // error the component specific installer will be invoked to proceed with 24 // error the component specific installer will be invoked to proceed with
19 // the component installation or update. 25 // the component installation or update.
20 // 26 //
21 // This class should be used only by the component updater. It is inspired 27 // This class should be used only by the component updater. It is inspired
22 // and overlaps with code in the extension's SandboxedUnpacker. 28 // and overlaps with code in the extension's SandboxedUnpacker.
23 // The main differences are: 29 // The main differences are:
24 // - The public key hash is full SHA256. 30 // - The public key hash is full SHA256.
25 // - Does not use a sandboxed unpacker. A valid component is fully trusted. 31 // - Does not use a sandboxed unpacker. A valid component is fully trusted.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 71
66 int extended_error() const { return extended_error_; } 72 int extended_error() const { return extended_error_; }
67 73
68 private: 74 private:
69 base::FilePath unpack_path_; 75 base::FilePath unpack_path_;
70 Error error_; 76 Error error_;
71 int extended_error_; // Provides additional error information. 77 int extended_error_; // Provides additional error information.
72 }; 78 };
73 79
74 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_ 80 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698