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

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

Issue 7743004: Move extension/webstore-related URL getters to the extension_urls namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // In a few special circumstances, we want to create an Extension and give it 201 // In a few special circumstances, we want to create an Extension and give it
202 // an explicit id. Most consumers should just use the plain Create() method. 202 // an explicit id. Most consumers should just use the plain Create() method.
203 static scoped_refptr<Extension> CreateWithId( 203 static scoped_refptr<Extension> CreateWithId(
204 const FilePath& path, 204 const FilePath& path,
205 Location location, 205 Location location,
206 const base::DictionaryValue& value, 206 const base::DictionaryValue& value,
207 int flags, 207 int flags,
208 const std::string& explicit_id, 208 const std::string& explicit_id,
209 std::string* error); 209 std::string* error);
210 210
211 // Return the update url used by gallery/webstore extensions.
212 static GURL GalleryUpdateUrl(bool secure);
213
214 // Given two install sources, return the one which should take priority 211 // Given two install sources, return the one which should take priority
215 // over the other. If an extension is installed from two sources A and B, 212 // over the other. If an extension is installed from two sources A and B,
216 // its install source should be set to GetHigherPriorityLocation(A, B). 213 // its install source should be set to GetHigherPriorityLocation(A, B).
217 static Location GetHigherPriorityLocation(Location loc1, Location loc2); 214 static Location GetHigherPriorityLocation(Location loc1, Location loc2);
218 215
219 // Icon sizes used by the extension system. 216 // Icon sizes used by the extension system.
220 static const int kIconSizes[]; 217 static const int kIconSizes[];
221 218
222 // Max size (both dimensions) for browser and page actions. 219 // Max size (both dimensions) for browser and page actions.
223 static const int kPageActionIconMaxSize; 220 static const int kPageActionIconMaxSize;
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 // only contain the removed permissions. 931 // only contain the removed permissions.
935 const ExtensionPermissionSet* permissions; 932 const ExtensionPermissionSet* permissions;
936 933
937 UpdatedExtensionPermissionsInfo( 934 UpdatedExtensionPermissionsInfo(
938 const Extension* extension, 935 const Extension* extension,
939 const ExtensionPermissionSet* permissions, 936 const ExtensionPermissionSet* permissions,
940 Reason reason); 937 Reason reason);
941 }; 938 };
942 939
943 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 940 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698