OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_MANAGED_MODE_SCOPED_EXTENSION_ELEVATION_H_ | |
6 #define CHROME_BROWSER_MANAGED_MODE_SCOPED_EXTENSION_ELEVATION_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 class ManagedUserService; | |
12 | |
13 // Used to allow managed users to install extensions if they are currently in | |
14 // elevated state. | |
15 class ScopedExtensionElevation { | |
16 public: | |
17 explicit ScopedExtensionElevation(ManagedUserService* service); | |
18 ~ScopedExtensionElevation(); | |
19 | |
20 // Add elevation for the extension with the id |extension_id|. | |
21 void AddExtension(std::string extension_id); | |
Bernhard Bauer
2013/03/28 15:52:01
Pass |extension_id| by const reference.
Adrian Kuegel
2013/03/28 16:05:53
Done.
| |
22 | |
23 private: | |
24 ManagedUserService* service_; | |
25 std::vector<std::string> elevated_extensions_; | |
Bernhard Bauer
2013/03/28 15:52:01
DISALLOW_COPY_AND_ASSIGN please!
Adrian Kuegel
2013/03/28 16:05:53
Done.
| |
26 }; | |
27 | |
28 #endif // CHROME_BROWSER_MANAGED_MODE_SCOPED_EXTENSION_ELEVATION_H_ | |
OLD | NEW |