OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" | |
17 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" |
18 #include "base/string16.h" | 17 #include "base/string16.h" |
19 #include "chrome/common/extensions/url_pattern_set.h" | 18 #include "chrome/common/extensions/url_pattern_set.h" |
20 | 19 |
21 // TODO(jstritar): Move each class to its own file in extensions/permissions. | 20 // TODO(jstritar): Move each class to its own file in extensions/permissions. |
22 | 21 |
23 class Extension; | 22 class Extension; |
24 class ExtensionPermissionsInfo; | 23 class ExtensionPermissionsInfo; |
25 | 24 |
26 // When prompting the user to install or approve permissions, we display | 25 // When prompting the user to install or approve permissions, we display |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 446 |
448 // The list of hosts this effectively grants access to. | 447 // The list of hosts this effectively grants access to. |
449 URLPatternSet effective_hosts_; | 448 URLPatternSet effective_hosts_; |
450 | 449 |
451 // A set of oauth2 scopes that are used by the identity API to create OAuth2 | 450 // A set of oauth2 scopes that are used by the identity API to create OAuth2 |
452 // tokens for accessing the Google Account of the signed-in sync account. | 451 // tokens for accessing the Google Account of the signed-in sync account. |
453 ExtensionOAuth2Scopes scopes_; | 452 ExtensionOAuth2Scopes scopes_; |
454 }; | 453 }; |
455 | 454 |
456 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ | 455 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ |
OLD | NEW |