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

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

Issue 10909239: Rename PACKAGED_APP references to LEGACY_PACKAGED_APP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments Created 8 years, 2 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>
(...skipping 27 matching lines...) Expand all
38 // version when making breaking changes to the extension system. If the 38 // version when making breaking changes to the extension system. If the
39 // manifest contains no explicit manifest version, this returns the current 39 // manifest contains no explicit manifest version, this returns the current
40 // system default. 40 // system default.
41 int GetManifestVersion() const; 41 int GetManifestVersion() const;
42 42
43 // Returns the manifest type. 43 // Returns the manifest type.
44 Extension::Type type() const { return type_; } 44 Extension::Type type() const { return type_; }
45 45
46 bool is_theme() const { return type_ == Extension::TYPE_THEME; } 46 bool is_theme() const { return type_ == Extension::TYPE_THEME; }
47 bool is_platform_app() const { return type_ == Extension::TYPE_PLATFORM_APP; } 47 bool is_platform_app() const { return type_ == Extension::TYPE_PLATFORM_APP; }
48 bool is_packaged_app() const { return type_ == Extension::TYPE_PACKAGED_APP; }
49 bool is_hosted_app() const { return type_ == Extension::TYPE_HOSTED_APP; } 48 bool is_hosted_app() const { return type_ == Extension::TYPE_HOSTED_APP; }
49 bool is_legacy_packaged_app() const {
50 return type_ == Extension::TYPE_LEGACY_PACKAGED_APP;
51 }
50 52
51 // These access the wrapped manifest value, returning false when the property 53 // These access the wrapped manifest value, returning false when the property
52 // does not exist or if the manifest type can't access it. 54 // does not exist or if the manifest type can't access it.
53 bool HasKey(const std::string& key) const; 55 bool HasKey(const std::string& key) const;
54 bool HasPath(const std::string& path) const; 56 bool HasPath(const std::string& path) const;
55 bool Get(const std::string& path, base::Value** out_value) const; 57 bool Get(const std::string& path, base::Value** out_value) const;
56 bool GetBoolean(const std::string& path, bool* out_value) const; 58 bool GetBoolean(const std::string& path, bool* out_value) const;
57 bool GetInteger(const std::string& path, int* out_value) const; 59 bool GetInteger(const std::string& path, int* out_value) const;
58 bool GetString(const std::string& path, std::string* out_value) const; 60 bool GetString(const std::string& path, std::string* out_value) const;
59 bool GetString(const std::string& path, string16* out_value) const; 61 bool GetString(const std::string& path, string16* out_value) const;
(...skipping 30 matching lines...) Expand all
90 scoped_ptr<base::DictionaryValue> value_; 92 scoped_ptr<base::DictionaryValue> value_;
91 93
92 Extension::Type type_; 94 Extension::Type type_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(Manifest); 96 DISALLOW_COPY_AND_ASSIGN(Manifest);
95 }; 97 };
96 98
97 } // namespace extensions 99 } // namespace extensions
98 100
99 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_H_ 101 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698