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

Unified Diff: extensions/browser/info_map.h

Issue 61323002: Fix broken threading model in CheckDesktopNotificationPermission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more merge conflicts.. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | extensions/browser/info_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/info_map.h
diff --git a/extensions/browser/info_map.h b/extensions/browser/info_map.h
index d68933fb7d2e484642bf45dd6730233fc1249ea9..407982c5333546da8941af64fe3db54869020ddf 100644
--- a/extensions/browser/info_map.h
+++ b/extensions/browser/info_map.h
@@ -35,7 +35,8 @@ class InfoMap : public base::RefCountedThreadSafe<InfoMap> {
// Callback for when new extensions are loaded.
void AddExtension(const extensions::Extension* extension,
base::Time install_time,
- bool incognito_enabled);
+ bool incognito_enabled,
+ bool notifications_disabled);
// Callback for when an extension is unloaded.
void RemoveExtension(const std::string& extension_id,
@@ -85,6 +86,12 @@ class InfoMap : public base::RefCountedThreadSafe<InfoMap> {
void SetSigninProcess(int process_id);
bool IsSigninProcess(int process_id) const;
+ // Notifications can be enabled/disabled in real time by the user.
+ void SetNotificationsDisabled(const std::string& extension_id,
+ bool notifications_disabled);
+ bool AreNotificationsDisabled(const std::string& extension_id)
+ const;
+
private:
friend class base::RefCountedThreadSafe<InfoMap>;
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | extensions/browser/info_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698