Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/extensions/permissions_updater.h

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/installed_loader.h ('k') | chrome/browser/extensions/test_extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698