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

Side by Side Diff: extensions/common/manifest_handlers/permissions_parser.h

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_COMMON_MANIFEST_HANDLERS_PERMISSIONS_PARSER_H_ 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_PERMISSIONS_PARSER_H_
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_PERMISSIONS_PARSER_H_ 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_PERMISSIONS_PARSER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "extensions/common/permissions/api_permission.h" 11 #include "extensions/common/permissions/api_permission.h"
11 #include "extensions/common/permissions/permission_set.h" 12 #include "extensions/common/permissions/permission_set.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 15
15 class Extension; 16 class Extension;
16 class URLPatternSet; 17 class URLPatternSet;
17 18
18 // The class for parsing the kPermissions and kOptionalPermissions keys in the 19 // The class for parsing the kPermissions and kOptionalPermissions keys in the
(...skipping 28 matching lines...) Expand all
47 // use PermissionsData. 48 // use PermissionsData.
48 static const PermissionSet& GetRequiredPermissions( 49 static const PermissionSet& GetRequiredPermissions(
49 const Extension* extension); 50 const Extension* extension);
50 static const PermissionSet& GetOptionalPermissions( 51 static const PermissionSet& GetOptionalPermissions(
51 const Extension* extension); 52 const Extension* extension);
52 53
53 private: 54 private:
54 struct InitialPermissions; 55 struct InitialPermissions;
55 56
56 // The initial permissions for the extension, which can still be modified. 57 // The initial permissions for the extension, which can still be modified.
57 scoped_ptr<InitialPermissions> initial_required_permissions_; 58 std::unique_ptr<InitialPermissions> initial_required_permissions_;
58 scoped_ptr<InitialPermissions> initial_optional_permissions_; 59 std::unique_ptr<InitialPermissions> initial_optional_permissions_;
59 }; 60 };
60 61
61 } // namespace extensions 62 } // namespace extensions
62 63
63 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_PERMISSIONS_PARSER_H_ 64 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_PERMISSIONS_PARSER_H_
OLDNEW
« no previous file with comments | « extensions/common/manifest_handlers/options_page_info.cc ('k') | extensions/common/manifest_handlers/permissions_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698