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

Side by Side Diff: chrome/common/extensions/extension.h

Issue 13473013: Move ThemeHandler from c/c/e/api; move GetBrowserImages() out of Extension class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master (+blink) Created 7 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 (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_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 // Sets the active |permissions|. 303 // Sets the active |permissions|.
304 void SetActivePermissions(const PermissionSet* permissions) const; 304 void SetActivePermissions(const PermissionSet* permissions) const;
305 305
306 // Gets the extension's active permission set. 306 // Gets the extension's active permission set.
307 scoped_refptr<const PermissionSet> GetActivePermissions() const; 307 scoped_refptr<const PermissionSet> GetActivePermissions() const;
308 308
309 // Whether context menu should be shown for page and browser actions. 309 // Whether context menu should be shown for page and browser actions.
310 bool ShowConfigureContextMenus() const; 310 bool ShowConfigureContextMenus() const;
311 311
312 // Returns a list of paths (relative to the extension dir) for images that
313 // the browser might load (like themes and page action icons).
314 std::set<base::FilePath> GetBrowserImages() const;
315
316 // Gets the fully resolved absolute launch URL. 312 // Gets the fully resolved absolute launch URL.
317 GURL GetFullLaunchURL() const; 313 GURL GetFullLaunchURL() const;
318 314
319 // Returns true if this extension can execute script on a page. If a 315 // Returns true if this extension can execute script on a page. If a
320 // UserScript object is passed, permission to run that specific script is 316 // UserScript object is passed, permission to run that specific script is
321 // checked (using its matches list). Otherwise, permission to execute script 317 // checked (using its matches list). Otherwise, permission to execute script
322 // programmatically is checked (using the extension's host permission). 318 // programmatically is checked (using the extension's host permission).
323 // 319 //
324 // This method is also aware of certain special pages that extensions are 320 // This method is also aware of certain special pages that extensions are
325 // usually not allowed to run script on. 321 // usually not allowed to run script on.
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 731
736 UpdatedExtensionPermissionsInfo( 732 UpdatedExtensionPermissionsInfo(
737 const Extension* extension, 733 const Extension* extension,
738 const PermissionSet* permissions, 734 const PermissionSet* permissions,
739 Reason reason); 735 Reason reason);
740 }; 736 };
741 737
742 } // namespace extensions 738 } // namespace extensions
743 739
744 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 740 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698