Lines Matching defs:Location
47 enum Location {
211 // Extension::ShouldDoStrictErrorChecking(location) returns true.
221 Location location,
232 static Location GetHigherPriorityLocation(Location loc1, Location loc2);
348 // Whether the |location| is external or not.
349 static inline bool IsExternalLocation(Location location) {
350 return location == Extension::EXTERNAL_PREF ||
351 location == Extension::EXTERNAL_REGISTRY ||
352 location == Extension::EXTERNAL_PREF_DOWNLOAD ||
353 location == Extension::EXTERNAL_POLICY_DOWNLOAD;
356 // Whether extensions with |location| are auto-updatable or not.
357 static inline bool IsAutoUpdateableLocation(Location location) {
359 return location == Extension::INTERNAL ||
360 IsExternalLocation(location);
363 // Whether extensions with |location| can be uninstalled or not. Policy
366 static inline bool UserMayDisable(Location location) {
367 return location != Extension::EXTERNAL_POLICY_DOWNLOAD &&
368 location != Extension::COMPONENT;
371 // Whether extensions with |location| should be loaded with strict
374 // strict checks are disabled unless the location indicates that the
377 static inline bool ShouldDoStrictErrorChecking(Location location) {
378 return location == Extension::LOAD ||
379 location == Extension::COMPONENT;
384 static inline bool ShouldAlwaysAllowFileAccess(Location location) {
385 return location == Extension::LOAD;
573 Location location() const { return location_; }
671 Extension(const FilePath& path, Location location);
803 // The location the extension was loaded from.
804 Location location_;
940 Extension::Location location);
946 Extension::Location extension_location;