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

Side by Side Diff: chrome/browser/managed_mode/scoped_extension_elevation.h

Issue 13119011: Enable WebContents elevation for managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put ScopedExtensionElevation in its own file. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698