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

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

Issue 299853002: Make installed_loader UMA less wasteful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_COMMON_MANIFEST_H_ 5 #ifndef EXTENSIONS_COMMON_MANIFEST_H_
6 #define EXTENSIONS_COMMON_MANIFEST_H_ 6 #define EXTENSIONS_COMMON_MANIFEST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 enum Type { 55 enum Type {
56 TYPE_UNKNOWN = 0, 56 TYPE_UNKNOWN = 0,
57 TYPE_EXTENSION, 57 TYPE_EXTENSION,
58 TYPE_THEME, 58 TYPE_THEME,
59 TYPE_USER_SCRIPT, 59 TYPE_USER_SCRIPT,
60 TYPE_HOSTED_APP, 60 TYPE_HOSTED_APP,
61 // This is marked legacy because platform apps are preferred. For 61 // This is marked legacy because platform apps are preferred. For
62 // backwards compatibility, we can't remove support for packaged apps 62 // backwards compatibility, we can't remove support for packaged apps
63 TYPE_LEGACY_PACKAGED_APP, 63 TYPE_LEGACY_PACKAGED_APP,
64 TYPE_PLATFORM_APP, 64 TYPE_PLATFORM_APP,
65 TYPE_SHARED_MODULE 65 TYPE_SHARED_MODULE,
66 NUM_LOAD_TYPES
Devlin 2014/05/21 19:54:09 nit: We should probably include the standard comme
jar (doing other things) 2014/05/21 22:12:45 +1
not at google - send to devlin 2014/05/21 23:17:22 Done.
66 }; 67 };
67 68
68 // Given two install sources, return the one which should take priority 69 // Given two install sources, return the one which should take priority
69 // over the other. If an extension is installed from two sources A and B, 70 // over the other. If an extension is installed from two sources A and B,
70 // its install source should be set to GetHigherPriorityLocation(A, B). 71 // its install source should be set to GetHigherPriorityLocation(A, B).
71 static Location GetHigherPriorityLocation(Location loc1, Location loc2); 72 static Location GetHigherPriorityLocation(Location loc1, Location loc2);
72 73
73 // Whether the |location| is external or not. 74 // Whether the |location| is external or not.
74 static inline bool IsExternalLocation(Location location) { 75 static inline bool IsExternalLocation(Location location) {
75 return location == EXTERNAL_PREF || 76 return location == EXTERNAL_PREF ||
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 scoped_ptr<base::DictionaryValue> value_; 190 scoped_ptr<base::DictionaryValue> value_;
190 191
191 Type type_; 192 Type type_;
192 193
193 DISALLOW_COPY_AND_ASSIGN(Manifest); 194 DISALLOW_COPY_AND_ASSIGN(Manifest);
194 }; 195 };
195 196
196 } // namespace extensions 197 } // namespace extensions
197 198
198 #endif // EXTENSIONS_COMMON_MANIFEST_H_ 199 #endif // EXTENSIONS_COMMON_MANIFEST_H_
OLDNEW
« extensions/browser/admin_policy.cc ('K') | « extensions/common/features/simple_feature.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698