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_API_PERMISSIONS_PERMISSIONS_API_HELPERS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_HELPERS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_HELPERS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_HELPERS_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 | 11 |
13 namespace base { | 12 namespace base { |
14 class DictionaryValue; | 13 class DictionaryValue; |
15 } | 14 } |
16 | 15 |
17 | 16 |
(...skipping 16 matching lines...) Expand all Loading... |
34 | 33 |
35 // Creates a permission set from |permissions|. Returns NULL if the permissions | 34 // Creates a permission set from |permissions|. Returns NULL if the permissions |
36 // cannot be converted to a permission set, in which case |error| will be set. | 35 // cannot be converted to a permission set, in which case |error| will be set. |
37 scoped_refptr<PermissionSet> UnpackPermissionSet( | 36 scoped_refptr<PermissionSet> UnpackPermissionSet( |
38 const api::permissions::Permissions& permissions, std::string* error); | 37 const api::permissions::Permissions& permissions, std::string* error); |
39 | 38 |
40 } // namespace permissions_api_helpers | 39 } // namespace permissions_api_helpers |
41 } // namespace extensions | 40 } // namespace extensions |
42 | 41 |
43 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_HELPERS_H_ | 42 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_HELPERS_H_ |
OLD | NEW |