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

Side by Side Diff: extensions/common/permissions/permission_message_provider.h

Issue 107803004: Add base:: to string16 in extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a using Created 7 years 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PERMISSIONS_PERMISSION_MESSAGE_PROVIDER_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_PROVIDER_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_PROVIDER_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "extensions/common/manifest.h" 10 #include "extensions/common/manifest.h"
(...skipping 15 matching lines...) Expand all
26 static const PermissionMessageProvider* Get(); 26 static const PermissionMessageProvider* Get();
27 27
28 // Gets the localized permission messages that represent this set. 28 // Gets the localized permission messages that represent this set.
29 // The set of permission messages shown varies by extension type. 29 // The set of permission messages shown varies by extension type.
30 virtual PermissionMessages GetPermissionMessages( 30 virtual PermissionMessages GetPermissionMessages(
31 const PermissionSet* permissions, 31 const PermissionSet* permissions,
32 Manifest::Type extension_type) const = 0; 32 Manifest::Type extension_type) const = 0;
33 33
34 // Gets the localized permission messages that represent this set (represented 34 // Gets the localized permission messages that represent this set (represented
35 // as strings). The set of permission messages shown varies by extension type. 35 // as strings). The set of permission messages shown varies by extension type.
36 virtual std::vector<string16> GetWarningMessages( 36 virtual std::vector<base::string16> GetWarningMessages(
37 const PermissionSet* permissions, 37 const PermissionSet* permissions,
38 Manifest::Type extension_type) const = 0; 38 Manifest::Type extension_type) const = 0;
39 39
40 // Gets the localized permission details for messages that represent this set 40 // Gets the localized permission details for messages that represent this set
41 // (represented as strings). The set of permission messages shown varies by 41 // (represented as strings). The set of permission messages shown varies by
42 // extension type. 42 // extension type.
43 virtual std::vector<string16> GetWarningMessagesDetails( 43 virtual std::vector<base::string16> GetWarningMessagesDetails(
44 const PermissionSet* permissions, 44 const PermissionSet* permissions,
45 Manifest::Type extension_type) const = 0; 45 Manifest::Type extension_type) const = 0;
46 46
47 // Returns true if |new_permissions| has a greater privilege level than 47 // Returns true if |new_permissions| has a greater privilege level than
48 // |old_permissions|. 48 // |old_permissions|.
49 // Whether certain permissions are considered varies by extension type. 49 // Whether certain permissions are considered varies by extension type.
50 virtual bool IsPrivilegeIncrease( 50 virtual bool IsPrivilegeIncrease(
51 const PermissionSet* old_permissions, 51 const PermissionSet* old_permissions,
52 const PermissionSet* new_permissions, 52 const PermissionSet* new_permissions,
53 Manifest::Type extension_type) const = 0; 53 Manifest::Type extension_type) const = 0;
54 }; 54 };
55 55
56 } // namespace extensions 56 } // namespace extensions
57 57
58 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_PROVIDER_H_ 58 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_PROVIDER_H_
OLDNEW
« no previous file with comments | « extensions/common/permissions/permission_message.cc ('k') | extensions/common/permissions/permissions_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698