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

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

Issue 16283002: Move Extension::UpdatesFromGallery to ManifestURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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_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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 bool HasAPIPermission(APIPermission::ID permission) const; 246 bool HasAPIPermission(APIPermission::ID permission) const;
247 bool HasAPIPermission(const std::string& function_name) const; 247 bool HasAPIPermission(const std::string& function_name) const;
248 scoped_refptr<const PermissionSet> GetActivePermissions() const; 248 scoped_refptr<const PermissionSet> GetActivePermissions() const;
249 249
250 // Whether context menu should be shown for page and browser actions. 250 // Whether context menu should be shown for page and browser actions.
251 bool ShowConfigureContextMenus() const; 251 bool ShowConfigureContextMenus() const;
252 252
253 // Gets the fully resolved absolute launch URL. 253 // Gets the fully resolved absolute launch URL.
254 GURL GetFullLaunchURL() const; 254 GURL GetFullLaunchURL() const;
255 255
256 // Returns true if this extension updates itself using the extension
257 // gallery.
258 bool UpdatesFromGallery() const;
259
260 // Returns true if this extension or app includes areas within |origin|. 256 // Returns true if this extension or app includes areas within |origin|.
261 bool OverlapsWithOrigin(const GURL& origin) const; 257 bool OverlapsWithOrigin(const GURL& origin) const;
262 258
263 // Returns the sync bucket to use for this extension. 259 // Returns the sync bucket to use for this extension.
264 SyncType GetSyncType() const; 260 SyncType GetSyncType() const;
265 261
266 // Returns true if the extension should be synced. 262 // Returns true if the extension should be synced.
267 bool IsSyncable() const; 263 bool IsSyncable() const;
268 264
269 // Returns true if the extension requires a valid ordinal for sorting, e.g., 265 // Returns true if the extension requires a valid ordinal for sorting, e.g.,
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 574
579 UpdatedExtensionPermissionsInfo( 575 UpdatedExtensionPermissionsInfo(
580 const Extension* extension, 576 const Extension* extension,
581 const PermissionSet* permissions, 577 const PermissionSet* permissions,
582 Reason reason); 578 Reason reason);
583 }; 579 };
584 580
585 } // namespace extensions 581 } // namespace extensions
586 582
587 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 583 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698