Chromium Code Reviews| 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/singleton.h" | 15 #include "base/memory/singleton.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "chrome/common/extensions/url_pattern_set.h" | 18 #include "chrome/common/extensions/url_pattern_set.h" |
| 19 | 19 |
| 20 class DictionaryValue; | |
| 21 class Extension; | 20 class Extension; |
| 22 class ExtensionPrefs; | 21 class ExtensionPrefs; |
| 22 | |
| 23 namespace base { | |
| 24 class DictionaryValue; | |
| 23 class ListValue; | 25 class ListValue; |
| 26 } | |
| 27 | |
| 28 using base::DictionaryValue; | |
|
brettw
2011/07/07 16:05:08
Ditto
dmazzoni
2011/07/07 22:57:00
Done.
| |
| 29 using base::ListValue; | |
| 24 | 30 |
| 25 // When prompting the user to install or approve permissions, we display | 31 // When prompting the user to install or approve permissions, we display |
| 26 // messages describing the effects of the permissions rather than listing the | 32 // messages describing the effects of the permissions rather than listing the |
| 27 // permissions themselves. Each ExtensionPermissionMessage represents one of the | 33 // permissions themselves. Each ExtensionPermissionMessage represents one of the |
| 28 // messages shown to the user. | 34 // messages shown to the user. |
| 29 class ExtensionPermissionMessage { | 35 class ExtensionPermissionMessage { |
| 30 public: | 36 public: |
| 31 // Do not reorder this enumeration. If you need to add a new enum, add it just | 37 // Do not reorder this enumeration. If you need to add a new enum, add it just |
| 32 // prior to kEnumBoundary. | 38 // prior to kEnumBoundary. |
| 33 enum ID { | 39 enum ID { |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 380 URLPatternSet explicit_hosts_; | 386 URLPatternSet explicit_hosts_; |
| 381 | 387 |
| 382 // The list of hosts that can be scripted by content scripts. | 388 // The list of hosts that can be scripted by content scripts. |
| 383 URLPatternSet scriptable_hosts_; | 389 URLPatternSet scriptable_hosts_; |
| 384 | 390 |
| 385 // The list of hosts this effectively grants access to. | 391 // The list of hosts this effectively grants access to. |
| 386 URLPatternSet effective_hosts_; | 392 URLPatternSet effective_hosts_; |
| 387 }; | 393 }; |
| 388 | 394 |
| 389 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 395 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
| OLD | NEW |