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

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

Issue 9705083: Unknown options in extension manifest file are silently ignored (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed an accedentally-included file Created 8 years, 9 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_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 // Returns the sync bucket to use for this extension. 517 // Returns the sync bucket to use for this extension.
518 SyncType GetSyncType() const; 518 SyncType GetSyncType() const;
519 519
520 // Returns true if the extension should be synced. 520 // Returns true if the extension should be synced.
521 bool IsSyncable() const; 521 bool IsSyncable() const;
522 522
523 // Returns true if the extension should be displayed in the launcher. 523 // Returns true if the extension should be displayed in the launcher.
524 bool ShouldDisplayInLauncher() const; 524 bool ShouldDisplayInLauncher() const;
525 525
526 // Gets the list of unrecognized keys in the manifest, if any.
527 // Unrecognized keys are filled in when Manifest::ValidateManifest is called.
not at google - send to devlin 2012/04/09 13:01:54 Why need this method? Seems adequate to call mani
528 bool HasUnrecognizedManifestKeys(
529 const std::vector<const std::string*>** unrecognized_keys) const;
530
526 // Accessors: 531 // Accessors:
527 532
528 const FilePath& path() const { return path_; } 533 const FilePath& path() const { return path_; }
529 const GURL& url() const { return extension_url_; } 534 const GURL& url() const { return extension_url_; }
530 Location location() const; 535 Location location() const;
531 const std::string& id() const; 536 const std::string& id() const;
532 const Version* version() const { return version_.get(); } 537 const Version* version() const { return version_.get(); }
533 const std::string VersionString() const; 538 const std::string VersionString() const;
534 const std::string& name() const { return name_; } 539 const std::string& name() const { return name_; }
535 const std::string public_key() const { return public_key_; } 540 const std::string public_key() const { return public_key_; }
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 // only contain the removed permissions. 1075 // only contain the removed permissions.
1071 const ExtensionPermissionSet* permissions; 1076 const ExtensionPermissionSet* permissions;
1072 1077
1073 UpdatedExtensionPermissionsInfo( 1078 UpdatedExtensionPermissionsInfo(
1074 const Extension* extension, 1079 const Extension* extension,
1075 const ExtensionPermissionSet* permissions, 1080 const ExtensionPermissionSet* permissions,
1076 Reason reason); 1081 Reason reason);
1077 }; 1082 };
1078 1083
1079 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1084 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698