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

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

Issue 8727024: Save the oauth client id used in App Notification setup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 AppsPromo* apps_promo() { return &apps_promo_; } 204 AppsPromo* apps_promo() { return &apps_promo_; }
205 205
206 extensions::ProcessMap* process_map() { return &process_map_; } 206 extensions::ProcessMap* process_map() { return &process_map_; }
207 207
208 // Whether this extension can run in an incognito window. 208 // Whether this extension can run in an incognito window.
209 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; 209 virtual bool IsIncognitoEnabled(const std::string& extension_id) const;
210 virtual void SetIsIncognitoEnabled(const std::string& extension_id, 210 virtual void SetIsIncognitoEnabled(const std::string& extension_id,
211 bool enabled); 211 bool enabled);
212 212
213 // When app notification setup is done, we call this to save the developer's
214 // oauth client id which we'll need at uninstall time to revoke the oauth
215 // permission grant for sending notifications.
213 virtual void SetAppNotificationSetupDone(const std::string& extension_id, 216 virtual void SetAppNotificationSetupDone(const std::string& extension_id,
214 bool value); 217 const std::string& oauth_client_id);
215 218
216 virtual void SetAppNotificationDisabled(const std::string& extension_id, 219 virtual void SetAppNotificationDisabled(const std::string& extension_id,
217 bool value); 220 bool value);
218 221
219 // Returns true if the given extension can see events and data from another 222 // Returns true if the given extension can see events and data from another
220 // sub-profile (incognito to original profile, or vice versa). 223 // sub-profile (incognito to original profile, or vice versa).
221 bool CanCrossIncognito(const Extension* extension); 224 bool CanCrossIncognito(const Extension* extension);
222 225
223 // Returns true if the given extension can be loaded in incognito. 226 // Returns true if the given extension can be loaded in incognito.
224 bool CanLoadInIncognito(const Extension* extension) const; 227 bool CanLoadInIncognito(const Extension* extension) const;
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 extensions::ProcessMap process_map_; 814 extensions::ProcessMap process_map_;
812 815
813 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 816 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
814 InstallAppsWithUnlimtedStorage); 817 InstallAppsWithUnlimtedStorage);
815 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 818 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
816 InstallAppsAndCheckStorageProtection); 819 InstallAppsAndCheckStorageProtection);
817 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 820 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
818 }; 821 };
819 822
820 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 823 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698