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

Side by Side Diff: chrome/browser/dom_ui/content_settings_handler.h

Issue 3068005: Flesh out the content settings exceptions lists a bit more. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: reduce instance vars Created 10 years, 4 months 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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/content_settings_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/options_ui.h" 9 #include "chrome/browser/dom_ui/options_ui.h"
10 #include "chrome/common/notification_observer.h"
11 #include "chrome/common/notification_registrar.h"
10 12
11 class ContentSettingsHandler : public OptionsPageUIHandler { 13 class ContentSettingsHandler : public OptionsPageUIHandler {
12 public: 14 public:
13 ContentSettingsHandler(); 15 ContentSettingsHandler();
14 virtual ~ContentSettingsHandler(); 16 virtual ~ContentSettingsHandler();
15 17
16 // OptionsUIHandler implementation. 18 // OptionsUIHandler implementation.
17 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 19 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
18 20
19 virtual void Initialize(); 21 virtual void Initialize();
20 22
21 virtual void RegisterMessages(); 23 virtual void RegisterMessages();
22 24
25 // NotificationObserver implementation.
26 virtual void Observe(NotificationType type,
27 const NotificationSource& source,
28 const NotificationDetails& details);
29
23 private: 30 private:
24 void UpdateImagesExceptionsViewFromModel(); 31 void UpdateImagesExceptionsViewFromModel();
25 void SetContentFilter(const Value* value); 32 void SetContentFilter(const Value* value);
26 void SetAllowThirdPartyCookies(const Value* value); 33 void SetAllowThirdPartyCookies(const Value* value);
34 void RemoveExceptions(const Value* value);
35
36 NotificationRegistrar notification_registrar_;
27 37
28 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 38 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
29 }; 39 };
30 40
31 #endif // CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ 41 #endif // CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_ui/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698