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

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

Issue 8493017: Cleanup extension permissions module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 11 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) 2012 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_EXTENSIONS_EXTENSION_PERMISSIONS_API_HELPERS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_HELPERS_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/memory/ref_counted.h"
12
13 namespace base {
14 class DictionaryValue;
15 }
16 class ExtensionPermissionSet;
17
18 namespace extensions {
19
20 namespace permissions_api {
21
22 // Converts the permission |set| to a dictionary value.
23 base::DictionaryValue* PackPermissionsToValue(
24 const ExtensionPermissionSet* set);
25
26 // Converts the |value| to a permission set.
27 bool UnpackPermissionsFromValue(base::DictionaryValue* value,
28 scoped_refptr<ExtensionPermissionSet>* ptr,
29 bool* bad_message,
30 std::string* error);
31
32 } // namespace permissions_api
33
34 } // namespace extensions
35
36 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PERMISSIONS_API_HELPERS_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_permissions_api.cc ('k') | chrome/browser/extensions/extension_permissions_api_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698