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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 8399022: Add a couple of notifications related settings to app/extensions sync: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 const FilePath& install_directory() const { return install_directory_; } 205 const FilePath& install_directory() const { return install_directory_; }
206 206
207 AppsPromo* apps_promo() { return &apps_promo_; } 207 AppsPromo* apps_promo() { return &apps_promo_; }
208 208
209 // Whether this extension can run in an incognito window. 209 // Whether this extension can run in an incognito window.
210 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; 210 virtual bool IsIncognitoEnabled(const std::string& extension_id) const;
211 virtual void SetIsIncognitoEnabled(const std::string& extension_id, 211 virtual void SetIsIncognitoEnabled(const std::string& extension_id,
212 bool enabled); 212 bool enabled);
213 213
214 virtual void SetAppNotificationSetupDone(const std::string& extension_id,
215 bool value);
216
217 virtual void SetAppNotificationDisabled(const std::string& extension_id,
218 bool value);
219
214 // Returns true if the given extension can see events and data from another 220 // Returns true if the given extension can see events and data from another
215 // sub-profile (incognito to original profile, or vice versa). 221 // sub-profile (incognito to original profile, or vice versa).
216 bool CanCrossIncognito(const Extension* extension); 222 bool CanCrossIncognito(const Extension* extension);
217 223
218 // Returns true if the given extension can be loaded in incognito. 224 // Returns true if the given extension can be loaded in incognito.
219 bool CanLoadInIncognito(const Extension* extension) const; 225 bool CanLoadInIncognito(const Extension* extension) const;
220 226
221 // Whether this extension can inject scripts into pages with file URLs. 227 // Whether this extension can inject scripts into pages with file URLs.
222 bool AllowFileAccess(const Extension* extension); 228 bool AllowFileAccess(const Extension* extension);
223 // Will reload the extension since this permission is applied at loading time 229 // Will reload the extension since this permission is applied at loading time
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 ExtensionWarningSet extension_warnings_; 845 ExtensionWarningSet extension_warnings_;
840 846
841 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
842 InstallAppsWithUnlimtedStorage); 848 InstallAppsWithUnlimtedStorage);
843 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
844 InstallAppsAndCheckStorageProtection); 850 InstallAppsAndCheckStorageProtection);
845 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 851 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
846 }; 852 };
847 853
848 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 854 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698