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

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

Issue 138553004: Move component updater artifacts into component_updater namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
12 #include "base/json/json_file_value_serializer.h" 13 #include "base/json/json_file_value_serializer.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 15
16 namespace component_updater {
17
15 class ComponentInstaller; 18 class ComponentInstaller;
16 class ComponentPatcher; 19 class ComponentPatcher;
17 20
18 // Deserializes the CRX manifest. The top level must be a dictionary. 21 // Deserializes the CRX manifest. The top level must be a dictionary.
19 scoped_ptr<base::DictionaryValue> ReadManifest( 22 scoped_ptr<base::DictionaryValue> ReadManifest(
20 const base::FilePath& unpack_path); 23 const base::FilePath& unpack_path);
21 24
22 // In charge of unpacking the component CRX package and verifying that it is 25 // In charge of unpacking the component CRX package and verifying that it is
23 // well formed and the cryptographic signature is correct. If there is no 26 // well formed and the cryptographic signature is correct. If there is no
24 // error the component specific installer will be invoked to proceed with 27 // error the component specific installer will be invoked to proceed with
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Error error() const { return error_; } 73 Error error() const { return error_; }
71 74
72 int extended_error() const { return extended_error_; } 75 int extended_error() const { return extended_error_; }
73 76
74 private: 77 private:
75 base::FilePath unpack_path_; 78 base::FilePath unpack_path_;
76 Error error_; 79 Error error_;
77 int extended_error_; // Provides additional error information. 80 int extended_error_; // Provides additional error information.
78 }; 81 };
79 82
83 } // namespace component_updater
84
80 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_ 85 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UNPACKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/component_patcher_win.cc ('k') | chrome/browser/component_updater/component_unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698