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

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

Issue 6260003: Clear plugin data together with cookies on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update copyright date Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 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_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/options/options_ui.h" 9 #include "chrome/browser/dom_ui/options/options_ui.h"
10 #include "chrome/browser/plugin_data_remover_helper.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 11 #include "chrome/browser/prefs/pref_change_registrar.h"
11 #include "chrome/common/content_settings_types.h" 12 #include "chrome/common/content_settings_types.h"
12 #include "chrome/common/notification_observer.h" 13 #include "chrome/common/notification_observer.h"
13 #include "chrome/common/notification_registrar.h" 14 #include "chrome/common/notification_registrar.h"
14 15
15 class HostContentSettingsMap; 16 class HostContentSettingsMap;
16 17
17 class ContentSettingsHandler : public OptionsPageUIHandler { 18 class ContentSettingsHandler : public OptionsPageUIHandler {
18 public: 19 public:
19 ContentSettingsHandler(); 20 ContentSettingsHandler();
(...skipping 12 matching lines...) Expand all
32 const NotificationDetails& details); 33 const NotificationDetails& details);
33 34
34 // Gets a string identifier for the group name, for use in HTML. 35 // Gets a string identifier for the group name, for use in HTML.
35 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); 36 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type);
36 37
37 private: 38 private:
38 // Functions that call into the page ----------------------------------------- 39 // Functions that call into the page -----------------------------------------
39 40
40 // Updates the page with the default settings (allow, ask, block, etc.) 41 // Updates the page with the default settings (allow, ask, block, etc.)
41 void UpdateSettingDefaultFromModel(ContentSettingsType type); 42 void UpdateSettingDefaultFromModel(ContentSettingsType type);
43 // Updates the state of the "Clear plugin LSO data on exit" checkbox.
44 void UpdateClearPluginLSOData();
42 45
43 // Clobbers and rebuilds the specific content setting type exceptions table. 46 // Clobbers and rebuilds the specific content setting type exceptions table.
44 void UpdateExceptionsViewFromModel(ContentSettingsType type); 47 void UpdateExceptionsViewFromModel(ContentSettingsType type);
45 // Clobbers and rebuilds all the exceptions tables in the page (both normal 48 // Clobbers and rebuilds all the exceptions tables in the page (both normal
46 // and OTR tables). 49 // and OTR tables).
47 void UpdateAllExceptionsViewsFromModel(); 50 void UpdateAllExceptionsViewsFromModel();
48 // As above, but only OTR tables. 51 // As above, but only OTR tables.
49 void UpdateAllOTRExceptionsViewsFromModel(); 52 void UpdateAllOTRExceptionsViewsFromModel();
50 // Clobbers and rebuilds just the geolocation exception table. 53 // Clobbers and rebuilds just the geolocation exception table.
51 void UpdateGeolocationExceptionsView(); 54 void UpdateGeolocationExceptionsView();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 std::string GetSettingDefaultFromModel(ContentSettingsType type); 100 std::string GetSettingDefaultFromModel(ContentSettingsType type);
98 101
99 // Returns true if the default setting for the given content settings type 102 // Returns true if the default setting for the given content settings type
100 // |type| is managed. 103 // |type| is managed.
101 bool GetDefaultSettingManagedFromModel(ContentSettingsType type); 104 bool GetDefaultSettingManagedFromModel(ContentSettingsType type);
102 105
103 // Member variables --------------------------------------------------------- 106 // Member variables ---------------------------------------------------------
104 107
105 NotificationRegistrar notification_registrar_; 108 NotificationRegistrar notification_registrar_;
106 PrefChangeRegistrar pref_change_registrar_; 109 PrefChangeRegistrar pref_change_registrar_;
110 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
107 111
108 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 112 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
109 }; 113 };
110 114
111 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 115 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/dom_ui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698