| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "base/version.h" | 16 #include "base/version.h" |
| 17 #include "chrome/browser/extensions/user_script_master.h" | 17 #include "chrome/browser/extensions/user_script_master.h" |
| 18 #include "chrome/common/extensions/url_pattern.h" | 18 #include "chrome/common/extensions/url_pattern.h" |
| 19 #include "chrome/common/page_action.h" | 19 #include "chrome/common/page_action.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "SkColor.h" | 21 #include "third_party/skia/include/core/SkColor.h" |
| 22 | 22 |
| 23 // Represents a Chromium extension. | 23 // Represents a Chromium extension. |
| 24 class Extension { | 24 class Extension { |
| 25 public: | 25 public: |
| 26 Extension() {} | 26 Extension() {} |
| 27 explicit Extension(const FilePath& path); | 27 explicit Extension(const FilePath& path); |
| 28 explicit Extension(const Extension& path); | 28 explicit Extension(const Extension& path); |
| 29 virtual ~Extension(); | 29 virtual ~Extension(); |
| 30 | 30 |
| 31 // The name of the manifest inside an extension. | 31 // The name of the manifest inside an extension. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 bool is_theme_; | 226 bool is_theme_; |
| 227 | 227 |
| 228 // The sites this extension has permission to talk to (using XHR, etc). | 228 // The sites this extension has permission to talk to (using XHR, etc). |
| 229 std::vector<URLPattern> permissions_; | 229 std::vector<URLPattern> permissions_; |
| 230 | 230 |
| 231 // We implement copy, but not assign. | 231 // We implement copy, but not assign. |
| 232 void operator=(const Extension&); | 232 void operator=(const Extension&); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ | 235 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |