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_BROWSER_EXTENSIONS_PERMISSIONS_UPDATER_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PERMISSIONS_UPDATER_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_PERMISSIONS_UPDATER_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_PERMISSIONS_UPDATER_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 | 12 |
13 class ExtensionPrefs; | |
14 class Profile; | 13 class Profile; |
15 | 14 |
16 namespace base { | 15 namespace base { |
17 class DictionaryValue; | 16 class DictionaryValue; |
18 } | 17 } |
19 | 18 |
20 namespace extensions { | 19 namespace extensions { |
21 | 20 |
22 class Extension; | 21 class Extension; |
| 22 class ExtensionPrefs; |
23 class PermissionSet; | 23 class PermissionSet; |
24 | 24 |
25 // Updates an Extension's active and granted permissions in persistent storage | 25 // Updates an Extension's active and granted permissions in persistent storage |
26 // and notifies interested parties of the changes. | 26 // and notifies interested parties of the changes. |
27 class PermissionsUpdater { | 27 class PermissionsUpdater { |
28 public: | 28 public: |
29 explicit PermissionsUpdater(Profile* profile); | 29 explicit PermissionsUpdater(Profile* profile); |
30 ~PermissionsUpdater(); | 30 ~PermissionsUpdater(); |
31 | 31 |
32 // Adds the set of |permissions| to the |extension|'s active permission set | 32 // Adds the set of |permissions| to the |extension|'s active permission set |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Gets the ExtensionPrefs for the associated profile. | 75 // Gets the ExtensionPrefs for the associated profile. |
76 ExtensionPrefs* GetExtensionPrefs(); | 76 ExtensionPrefs* GetExtensionPrefs(); |
77 | 77 |
78 Profile* profile_; | 78 Profile* profile_; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace extensions | 81 } // namespace extensions |
82 | 82 |
83 #endif // CHROME_BROWSER_EXTENSIONS_PERMISSIONS_UPDATER_H__ | 83 #endif // CHROME_BROWSER_EXTENSIONS_PERMISSIONS_UPDATER_H__ |
OLD | NEW |