Home | History | Annotate | Download | only in extensions

Lines Matching refs:extension

16 #include "chrome/common/extensions/extension.h"
21 // Class for managing global and per-extension preferences.
25 // internal state for the extension system in general, not associated
26 // with an individual extension, such as lastUpdateTime.
27 // - per-extension preferences:
28 // meta-preferences describing properties of the extension like
29 // installation time, whether the extension is enabled, etc.
30 // - extension controlled preferences:
31 // browser preferences that an extension controls. For example, an
32 // extension could use the proxy API to specify the browser's proxy
33 // preference. Extension-controlled preferences are stored in
38 // Key name for a preference that keeps track of per-extension settings. This
40 // extension ids.
78 // Returns true if the specified external extension was uninstalled by the
95 // Called when an extension is installed, so that prefs get created.
96 void OnExtensionInstalled(const Extension* extension,
97 Extension::State initial_state,
100 // Called when an extension is uninstalled, so that prefs get cleaned up.
102 const Extension::Location& location,
105 // Returns the state (enabled/disabled) of the given extension.
106 Extension::State GetExtensionState(const std::string& extension_id) const;
108 // Called to change the extension's state when it is enabled/disabled.
109 void SetExtensionState(const Extension* extension, Extension::State);
115 bool GetBrowserActionVisibility(const Extension* extension);
116 void SetBrowserActionVisibility(const Extension* extension, bool visible);
118 // Did the extension ask to escalate its permission during an upgrade?
121 // If |did_escalate| is true, the preferences for |extension| will be set to
123 void SetDidExtensionEscalatePermissions(const Extension* extension,
126 // Returns the version string for the currently installed extension, or
130 // Re-writes the extension manifest into the prefs.
131 // Called to change the extension's manifest when it's re-localized.
132 void UpdateManifest(const Extension* extension);
134 // Returns extension path based on extension ID, or empty FilePath on error.
143 // Based on extension id, checks prefs to see if it is blacklisted.
146 // Is the extension with |extension_id| allowed by policy (checking both
175 // granted to the extension with |extension_id|. |full_access| will be true
176 // if the extension has all effective permissions (like from an NPAPI plugin).
187 // to the granted permissions for extension with |extension_id|.
188 // |full_access| should be set to true if the extension effectively has all
195 // Returns true if the user enabled this extension to be loaded in incognito
200 // Returns true if the user has chosen to allow this extension to inject
214 // If |extension|'s prefs do not have a launch type set, then
217 const Extension* extension,
221 // Saves ExtensionInfo for each installed extension with the path to the
227 // Returns the ExtensionInfo from the prefs for the given extension. If the
228 // extension is not present, NULL is returned.
231 // We've downloaded an updated .crx file for the extension, but are waiting
249 // Returns the extension id's that have idle install information.
260 // Get the application launch index for an extension with |extension_id|. This
262 // A value of 0 generally indicates top left. If the extension has no launch
266 // Sets a specific launch index for an extension with |extension_id|.
276 // Get the application page index for an extension with |extension_id|. This
281 // Sets a specific page index for an extension with |extension_id|.
292 // The extension's update URL data. If not empty, the ExtensionUpdater
294 // of the extension is available.
299 // Sets a preference value that is controlled by the extension. In other
300 // words, this is not a pref value *about* the extension but something
301 // global the extension wants to override.
312 // Returns true if currently no extension with higher precedence controls the
318 // Returns true if extension |extension_id| currently controls the
324 // Returns true if there is an extension which controls the preference value
335 // to query the current time, when an extension is installed.
347 // Sets the pref |key| for extension |id| to |value|.
352 // Deletes the pref dictionary for extension |id|.
360 // Reads a boolean pref |pref_key| from extension with id |extension_id|.
370 // Reads an integer pref |pref_key| from extension with id |extension_id|.
375 // Reads a list pref |pref_key| from extension with id | extension_id|.
380 // Reads a list pref |pref_key| as a string set from the extension with
386 // Adds the |added_values| to the value of |pref_key| for the extension
393 // Returns a dictionary for extension |id|'s prefs or NULL if it doesn't
397 // Returns the dictionary of preferences controlled by the specified extension
408 // to the mutable extension dictionary.
413 // This is used to decide if an extension is blacklisted.
416 // Helper method to acquire the installation time of an extension.
425 // Installs the persistent extension preferences into |prefs_|'s extension
429 // The pref service specific to this set of extension prefs. Owned by profile.