| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "base/version.h" | |
| 19 #include "chrome/common/extensions/extension_extent.h" | 18 #include "chrome/common/extensions/extension_extent.h" |
| 20 #include "chrome/common/extensions/user_script.h" | 19 #include "chrome/common/extensions/user_script.h" |
| 21 #include "chrome/common/extensions/url_pattern.h" | 20 #include "chrome/common/extensions/url_pattern.h" |
| 22 #include "gfx/size.h" | 21 #include "gfx/size.h" |
| 23 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 24 | 23 |
| 25 class ExtensionAction; | 24 class ExtensionAction; |
| 26 class ExtensionResource; | 25 class ExtensionResource; |
| 27 class SkBitmap; | 26 class SkBitmap; |
| 27 class Version; |
| 28 | 28 |
| 29 // Represents a Chrome extension. | 29 // Represents a Chrome extension. |
| 30 class Extension { | 30 class Extension { |
| 31 public: | 31 public: |
| 32 typedef std::vector<URLPattern> URLPatternList; | 32 typedef std::vector<URLPattern> URLPatternList; |
| 33 typedef std::map<const std::string, GURL> URLOverrideMap; | 33 typedef std::map<const std::string, GURL> URLOverrideMap; |
| 34 | 34 |
| 35 // What an extension was loaded from. | 35 // What an extension was loaded from. |
| 36 // NOTE: These values are stored as integers in the preferences, so you | 36 // NOTE: These values are stored as integers in the preferences, so you |
| 37 // really don't want to change any existing ones. | 37 // really don't want to change any existing ones. |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 scoped_ptr<DictionaryValue> extension_manifest; | 605 scoped_ptr<DictionaryValue> extension_manifest; |
| 606 std::string extension_id; | 606 std::string extension_id; |
| 607 FilePath extension_path; | 607 FilePath extension_path; |
| 608 Extension::Location extension_location; | 608 Extension::Location extension_location; |
| 609 | 609 |
| 610 private: | 610 private: |
| 611 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 611 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
| 612 }; | 612 }; |
| 613 | 613 |
| 614 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 614 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |