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

Side by Side Diff: chrome/browser/notifications/desktop_notification_service.h

Issue 5398001: Allow default desktop content settings to be managed via policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Cocoa UI-changes Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Creates a data:xxxx URL which contains the full HTML for a notification 86 // Creates a data:xxxx URL which contains the full HTML for a notification
87 // using resource template which contains the standard formatting for 87 // using resource template which contains the standard formatting for
88 // notifications. 88 // notifications.
89 static string16 CreateDataUrl(int resource, 89 static string16 CreateDataUrl(int resource,
90 const std::vector<std::string>& subst); 90 const std::vector<std::string>& subst);
91 91
92 // The default content setting determines how to handle origins that haven't 92 // The default content setting determines how to handle origins that haven't
93 // been allowed or denied yet. 93 // been allowed or denied yet.
94 ContentSetting GetDefaultContentSetting(); 94 ContentSetting GetDefaultContentSetting();
95 void SetDefaultContentSetting(ContentSetting setting); 95 void SetDefaultContentSetting(ContentSetting setting);
96 bool IsDefaultContentSettingManaged() const;
96 97
97 // NOTE: This should only be called on the UI thread. 98 // NOTE: This should only be called on the UI thread.
98 void ResetToDefaultContentSetting(); 99 void ResetToDefaultContentSetting();
99 100
100 // Returns all origins that explicitly have been allowed. 101 // Returns all origins that explicitly have been allowed.
101 std::vector<GURL> GetAllowedOrigins(); 102 std::vector<GURL> GetAllowedOrigins();
102 103
103 // Returns all origins that explicitly have been denied. 104 // Returns all origins that explicitly have been denied.
104 std::vector<GURL> GetBlockedOrigins(); 105 std::vector<GURL> GetBlockedOrigins();
105 106
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // UI for desktop toasts. 149 // UI for desktop toasts.
149 NotificationUIManager* ui_manager_; 150 NotificationUIManager* ui_manager_;
150 151
151 PrefChangeRegistrar prefs_registrar_; 152 PrefChangeRegistrar prefs_registrar_;
152 NotificationRegistrar notification_registrar_; 153 NotificationRegistrar notification_registrar_;
153 154
154 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); 155 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService);
155 }; 156 };
156 157
157 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 158 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/content_filter_page_gtk.cc ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698