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

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

Issue 18854021: Making the extension permissions dialog scrollable, when needed (adding expandable sections for thi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Polish Created 7 years, 5 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSIONS_DATA_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSIONS_DATA_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSIONS_DATA_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSIONS_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Returns the full list of permission messages that the given |extension| 134 // Returns the full list of permission messages that the given |extension|
135 // should display at install time. 135 // should display at install time.
136 static PermissionMessages GetPermissionMessages(const Extension* extension); 136 static PermissionMessages GetPermissionMessages(const Extension* extension);
137 // Returns the full list of permission messages that the given |extension| 137 // Returns the full list of permission messages that the given |extension|
138 // should display at install time. The messages are returned as strings 138 // should display at install time. The messages are returned as strings
139 // for convenience. 139 // for convenience.
140 static std::vector<string16> GetPermissionMessageStrings( 140 static std::vector<string16> GetPermissionMessageStrings(
141 const Extension* extension); 141 const Extension* extension);
142 142
143 // Returns the full list of permission details for messages that the given
144 // |extension| should display at install time. The messages are returned as
145 // strings for convenience.
146 static std::vector<string16> GetPermissionMessageDetailsStrings(
147 const Extension* extension);
148
143 // Returns true if the given |extension| can execute script on a page. If a 149 // Returns true if the given |extension| can execute script on a page. If a
144 // UserScript object is passed, permission to run that specific script is 150 // UserScript object is passed, permission to run that specific script is
145 // checked (using its matches list). Otherwise, permission to execute script 151 // checked (using its matches list). Otherwise, permission to execute script
146 // programmatically is checked (using the extension's host permission). 152 // programmatically is checked (using the extension's host permission).
147 // 153 //
148 // This method is also aware of certain special pages that extensions are 154 // This method is also aware of certain special pages that extensions are
149 // usually not allowed to run script on. 155 // usually not allowed to run script on.
150 static bool CanExecuteScriptOnPage(const Extension* extension, 156 static bool CanExecuteScriptOnPage(const Extension* extension,
151 const GURL& document_url, 157 const GURL& document_url,
152 const GURL& top_document_url, 158 const GURL& top_document_url,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 mutable scoped_refptr<const PermissionSet> active_permissions_; 202 mutable scoped_refptr<const PermissionSet> active_permissions_;
197 203
198 mutable TabPermissionsMap tab_specific_permissions_; 204 mutable TabPermissionsMap tab_specific_permissions_;
199 205
200 DISALLOW_COPY_AND_ASSIGN(PermissionsData); 206 DISALLOW_COPY_AND_ASSIGN(PermissionsData);
201 }; 207 };
202 208
203 } // namespace extensions 209 } // namespace extensions
204 210
205 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSIONS_DATA_H_ 211 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSIONS_DATA_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/permission_set.cc ('k') | chrome/common/extensions/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698