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

Side by Side Diff: chrome/common/extensions/permissions/chrome_permission_message_rules.h

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_RULES_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_RULES_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_RULES_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_RULES_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h"
11 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
12 #include "extensions/common/permissions/api_permission.h" 13 #include "extensions/common/permissions/api_permission.h"
13 #include "extensions/common/permissions/api_permission_set.h" 14 #include "extensions/common/permissions/api_permission_set.h"
14 #include "extensions/common/permissions/permission_message.h" 15 #include "extensions/common/permissions/permission_message.h"
15 16
16 namespace extensions { 17 namespace extensions {
17 18
18 // A formatter which generates a single permission message for all permissions 19 // A formatter which generates a single permission message for all permissions
19 // that match a given rule. All remaining permissions that match the given rule 20 // that match a given rule. All remaining permissions that match the given rule
20 // are bucketed together, then GetPermissionMessage() is called with the 21 // are bucketed together, then GetPermissionMessage() is called with the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 std::set<APIPermission::ID> optional_permissions_; 84 std::set<APIPermission::ID> optional_permissions_;
84 85
85 // Owned by this class. linked_ptr is needed because this object is copyable 86 // Owned by this class. linked_ptr is needed because this object is copyable
86 // and stored in a returned vector. 87 // and stored in a returned vector.
87 linked_ptr<ChromePermissionMessageFormatter> formatter_; 88 linked_ptr<ChromePermissionMessageFormatter> formatter_;
88 }; 89 };
89 90
90 } // namespace extensions 91 } // namespace extensions
91 92
92 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_RULES_ H_ 93 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_RULES_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698