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

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

Issue 14099010: Move Version to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 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 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 17 matching lines...) Expand all
28 #include "extensions/common/extension_resource.h" 28 #include "extensions/common/extension_resource.h"
29 #include "extensions/common/install_warning.h" 29 #include "extensions/common/install_warning.h"
30 #include "extensions/common/url_pattern.h" 30 #include "extensions/common/url_pattern.h"
31 #include "extensions/common/url_pattern_set.h" 31 #include "extensions/common/url_pattern_set.h"
32 #include "googleurl/src/gurl.h" 32 #include "googleurl/src/gurl.h"
33 #include "ui/base/accelerators/accelerator.h" 33 #include "ui/base/accelerators/accelerator.h"
34 #include "ui/gfx/size.h" 34 #include "ui/gfx/size.h"
35 35
36 class ExtensionAction; 36 class ExtensionAction;
37 class SkBitmap; 37 class SkBitmap;
38 class Version;
39 38
40 namespace base { 39 namespace base {
41 class DictionaryValue; 40 class DictionaryValue;
42 class ListValue; 41 class ListValue;
42 class Version;
43 } 43 }
44 44
45 namespace gfx { 45 namespace gfx {
46 class ImageSkia; 46 class ImageSkia;
47 } 47 }
48 48
49 namespace extensions { 49 namespace extensions {
50 class APIPermissionSet; 50 class APIPermissionSet;
51 class PermissionSet; 51 class PermissionSet;
52 52
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // Can only be called before InitValue is finished. Not thread-safe; 386 // Can only be called before InitValue is finished. Not thread-safe;
387 // all SetManifestData calls should be on only one thread. 387 // all SetManifestData calls should be on only one thread.
388 void SetManifestData(const std::string& key, ManifestData* data); 388 void SetManifestData(const std::string& key, ManifestData* data);
389 389
390 // Accessors: 390 // Accessors:
391 391
392 const base::FilePath& path() const { return path_; } 392 const base::FilePath& path() const { return path_; }
393 const GURL& url() const { return extension_url_; } 393 const GURL& url() const { return extension_url_; }
394 Manifest::Location location() const; 394 Manifest::Location location() const;
395 const std::string& id() const; 395 const std::string& id() const;
396 const Version* version() const { return version_.get(); } 396 const base::Version* version() const { return version_.get(); }
397 const std::string VersionString() const; 397 const std::string VersionString() const;
398 const std::string& name() const { return name_; } 398 const std::string& name() const { return name_; }
399 const std::string& non_localized_name() const { return non_localized_name_; } 399 const std::string& non_localized_name() const { return non_localized_name_; }
400 // Base64-encoded version of the key used to sign this extension. 400 // Base64-encoded version of the key used to sign this extension.
401 // In pseudocode, returns 401 // In pseudocode, returns
402 // base::Base64Encode(RSAPrivateKey(pem_file).ExportPublicKey()). 402 // base::Base64Encode(RSAPrivateKey(pem_file).ExportPublicKey()).
403 const std::string& public_key() const { return public_key_; } 403 const std::string& public_key() const { return public_key_; }
404 const std::string& description() const { return description_; } 404 const std::string& description() const { return description_; }
405 int manifest_version() const { return manifest_version_; } 405 int manifest_version() const { return manifest_version_; }
406 bool converted_from_user_script() const { 406 bool converted_from_user_script() const {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 // The extension's required / default set of permissions. 604 // The extension's required / default set of permissions.
605 scoped_refptr<const PermissionSet> required_permission_set_; 605 scoped_refptr<const PermissionSet> required_permission_set_;
606 606
607 // Any warnings that occurred when trying to create/parse the extension. 607 // Any warnings that occurred when trying to create/parse the extension.
608 std::vector<InstallWarning> install_warnings_; 608 std::vector<InstallWarning> install_warnings_;
609 609
610 // The base extension url for the extension. 610 // The base extension url for the extension.
611 GURL extension_url_; 611 GURL extension_url_;
612 612
613 // The extension's version. 613 // The extension's version.
614 scoped_ptr<Version> version_; 614 scoped_ptr<base::Version> version_;
615 615
616 // An optional longer description of the extension. 616 // An optional longer description of the extension.
617 std::string description_; 617 std::string description_;
618 618
619 // True if the extension was generated from a user script. (We show slightly 619 // True if the extension was generated from a user script. (We show slightly
620 // different UI if so). 620 // different UI if so).
621 bool converted_from_user_script_; 621 bool converted_from_user_script_;
622 622
623 // Optional list of NaCl modules and associated properties. 623 // Optional list of NaCl modules and associated properties.
624 std::vector<NaClModuleInfo> nacl_modules_; 624 std::vector<NaClModuleInfo> nacl_modules_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 UpdatedExtensionPermissionsInfo( 731 UpdatedExtensionPermissionsInfo(
732 const Extension* extension, 732 const Extension* extension,
733 const PermissionSet* permissions, 733 const PermissionSet* permissions,
734 Reason reason); 734 Reason reason);
735 }; 735 };
736 736
737 } // namespace extensions 737 } // namespace extensions
738 738
739 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 739 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.h ('k') | chrome/installer/setup/install_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698