OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PERMISSION_SET_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_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/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
18 #include "base/string16.h" | 18 #include "base/string16.h" |
19 #include "chrome/common/extensions/url_pattern_set.h" | 19 #include "chrome/common/extensions/url_pattern_set.h" |
20 | 20 |
21 class Extension; | 21 class Extension; |
22 class ExtensionPrefs; | |
23 | 22 |
24 // When prompting the user to install or approve permissions, we display | 23 // When prompting the user to install or approve permissions, we display |
25 // messages describing the effects of the permissions rather than listing the | 24 // messages describing the effects of the permissions rather than listing the |
26 // permissions themselves. Each ExtensionPermissionMessage represents one of the | 25 // permissions themselves. Each ExtensionPermissionMessage represents one of the |
27 // messages shown to the user. | 26 // messages shown to the user. |
28 class ExtensionPermissionMessage { | 27 class ExtensionPermissionMessage { |
29 public: | 28 public: |
30 // Do not reorder this enumeration. If you need to add a new enum, add it just | 29 // Do not reorder this enumeration. If you need to add a new enum, add it just |
31 // prior to kEnumBoundary. | 30 // prior to kEnumBoundary. |
32 enum ID { | 31 enum ID { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 414 |
416 // The list of hosts that can be scripted by content scripts. | 415 // The list of hosts that can be scripted by content scripts. |
417 // TODO(jstritar): Rename to "user_script_hosts_"? | 416 // TODO(jstritar): Rename to "user_script_hosts_"? |
418 URLPatternSet scriptable_hosts_; | 417 URLPatternSet scriptable_hosts_; |
419 | 418 |
420 // The list of hosts this effectively grants access to. | 419 // The list of hosts this effectively grants access to. |
421 URLPatternSet effective_hosts_; | 420 URLPatternSet effective_hosts_; |
422 }; | 421 }; |
423 | 422 |
424 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 423 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |