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

Side by Side Diff: chrome/common/extensions/manifest.h

Issue 10750010: Add an installType property to the management API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Test added (finally!) Created 8 years, 4 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 (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_COMMON_EXTENSIONS_MANIFEST_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_H_ 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <set> 10 #include <set>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
16 16
17 FORWARD_DECLARE_TEST(ExtensionManagementApiTest, Basics);
18
17 namespace extensions { 19 namespace extensions {
18 20
19 // Wraps the DictionaryValue form of extension's manifest. Enforces access to 21 // Wraps the DictionaryValue form of extension's manifest. Enforces access to
20 // properties of the manifest using ManifestFeatureProvider. 22 // properties of the manifest using ManifestFeatureProvider.
21 class Manifest { 23 class Manifest {
22 public: 24 public:
23 Manifest(Extension::Location location, scoped_ptr<DictionaryValue> value); 25 Manifest(Extension::Location location, scoped_ptr<DictionaryValue> value);
24 virtual ~Manifest(); 26 virtual ~Manifest();
25 27
26 const std::string& extension_id() const { return extension_id_; } 28 const std::string& extension_id() const { return extension_id_; }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::string extension_id_; 86 std::string extension_id_;
85 87
86 // The location the extension was loaded from. 88 // The location the extension was loaded from.
87 Extension::Location location_; 89 Extension::Location location_;
88 90
89 // The underlying dictionary representation of the manifest. 91 // The underlying dictionary representation of the manifest.
90 scoped_ptr<base::DictionaryValue> value_; 92 scoped_ptr<base::DictionaryValue> value_;
91 93
92 Extension::Type type_; 94 Extension::Type type_;
93 95
96 FRIEND_TEST_ALL_PREFIXES(::ExtensionManagementApiTest, Basics);
97
94 DISALLOW_COPY_AND_ASSIGN(Manifest); 98 DISALLOW_COPY_AND_ASSIGN(Manifest);
95 }; 99 };
96 100
97 } // namespace extensions 101 } // namespace extensions
98 102
99 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_H_ 103 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698