| 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_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 <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 #include <map> |  | 
| 11 | 10 | 
| 12 #include "base/file_path.h" | 11 #include "base/file_path.h" | 
| 13 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" | 
| 14 #include "base/string16.h" |  | 
| 15 #include "base/values.h" | 13 #include "base/values.h" | 
| 16 #include "base/version.h" | 14 #include "base/version.h" | 
| 17 #include "chrome/common/extensions/user_script.h" | 15 #include "chrome/common/extensions/user_script.h" | 
| 18 #include "chrome/common/extensions/url_pattern.h" | 16 #include "chrome/common/extensions/url_pattern.h" | 
| 19 #include "chrome/common/page_action.h" | 17 #include "chrome/common/page_action.h" | 
| 20 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" | 
| 21 #include "third_party/skia/include/core/SkColor.h" |  | 
| 22 | 19 | 
| 23 // Represents a Chromium extension. | 20 // Represents a Chromium extension. | 
| 24 class Extension { | 21 class Extension { | 
| 25  public: | 22  public: | 
| 26   // What an extension was loaded from. | 23   // What an extension was loaded from. | 
| 27   enum Location { | 24   enum Location { | 
| 28     INVALID, | 25     INVALID, | 
| 29     INTERNAL,  // A crx file from the internal Extensions directory. | 26     INTERNAL,  // A crx file from the internal Extensions directory. | 
| 30     EXTERNAL,  // A crx file from an external directory (via eg the registry | 27     EXTERNAL,  // A crx file from an external directory (via eg the registry | 
| 31                // on Windows). | 28                // on Windows). | 
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 238   // Whether the extension is a theme - if it is, certain things are disabled. | 235   // Whether the extension is a theme - if it is, certain things are disabled. | 
| 239   bool is_theme_; | 236   bool is_theme_; | 
| 240 | 237 | 
| 241   // The sites this extension has permission to talk to (using XHR, etc). | 238   // The sites this extension has permission to talk to (using XHR, etc). | 
| 242   std::vector<URLPattern> permissions_; | 239   std::vector<URLPattern> permissions_; | 
| 243 | 240 | 
| 244   DISALLOW_COPY_AND_ASSIGN(Extension); | 241   DISALLOW_COPY_AND_ASSIGN(Extension); | 
| 245 }; | 242 }; | 
| 246 | 243 | 
| 247 #endif  // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 244 #endif  // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 
| OLD | NEW | 
|---|