| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BROWSER_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 | 14 |
| 15 // Represents a Chromium extension. | 15 // Represents a Chromium extension. |
| 16 class Extension { | 16 class Extension { |
| 17 public: | 17 public: |
| 18 Extension(){}; | 18 Extension(){}; |
| 19 Extension(const FilePath& path) : path_(path) {}; | 19 Extension(const FilePath& path) : path_(path) {}; |
| 20 | 20 |
| 21 // The format for extension manifests that this code understands. | 21 // The format for extension manifests that this code understands. |
| 22 static const int kExpectedFormatVersion = 1; | 22 static const int kExpectedFormatVersion = 1; |
| 23 | 23 |
| 24 // The name of the manifest inside an extension. | 24 // The name of the manifest inside an extension. |
| 25 static const FilePath::CharType* kManifestFilename; | 25 static const char kManifestFilename[]; |
| 26 | 26 |
| 27 // Keys used in JSON representation of extensions. | 27 // Keys used in JSON representation of extensions. |
| 28 static const wchar_t* kFormatVersionKey; | 28 static const wchar_t* kFormatVersionKey; |
| 29 static const wchar_t* kIdKey; | 29 static const wchar_t* kIdKey; |
| 30 static const wchar_t* kNameKey; | 30 static const wchar_t* kNameKey; |
| 31 static const wchar_t* kDescriptionKey; | 31 static const wchar_t* kDescriptionKey; |
| 32 static const wchar_t* kContentScriptsKey; | 32 static const wchar_t* kContentScriptsKey; |
| 33 static const wchar_t* kVersionKey; | 33 static const wchar_t* kVersionKey; |
| 34 | 34 |
| 35 // Error messages returned from InitFromValue(). | 35 // Error messages returned from InitFromValue(). |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // An optional description for the extension. | 89 // An optional description for the extension. |
| 90 std::string description_; | 90 std::string description_; |
| 91 | 91 |
| 92 // Paths to the content scripts the extension contains. | 92 // Paths to the content scripts the extension contains. |
| 93 std::vector<std::string> content_scripts_; | 93 std::vector<std::string> content_scripts_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(Extension); | 95 DISALLOW_COPY_AND_ASSIGN(Extension); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ | 98 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |