| OLD | NEW |
| 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_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/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void UpdateExceptionsViewFromOTRHostContentSettingsMap( | 58 void UpdateExceptionsViewFromOTRHostContentSettingsMap( |
| 59 ContentSettingsType type); | 59 ContentSettingsType type); |
| 60 | 60 |
| 61 // Callbacks used by the page ------------------------------------------------ | 61 // Callbacks used by the page ------------------------------------------------ |
| 62 | 62 |
| 63 // Sets the default value for a specific content type. |args| includes the | 63 // Sets the default value for a specific content type. |args| includes the |
| 64 // content type and a string describing the new default the user has | 64 // content type and a string describing the new default the user has |
| 65 // chosen. | 65 // chosen. |
| 66 void SetContentFilter(const ListValue* args); | 66 void SetContentFilter(const ListValue* args); |
| 67 | 67 |
| 68 // Removes the given rows from the table. The first entry in |args| is the | 68 // Removes the given row from the table. The first entry in |args| is the |
| 69 // content type, and the rest of the arguments describe individual exceptions | 69 // content type, and the rest of the arguments depend on the content type |
| 70 // to be removed. | 70 // to be removed. |
| 71 void RemoveExceptions(const ListValue* args); | 71 void RemoveException(const ListValue* args); |
| 72 | 72 |
| 73 // Changes the value of an exception. Called after the user is done editing an | 73 // Changes the value of an exception. Called after the user is done editing an |
| 74 // exception. | 74 // exception. |
| 75 void SetException(const ListValue* args); | 75 void SetException(const ListValue* args); |
| 76 | 76 |
| 77 // Called to decide whether a given pattern is valid, or if it should be | 77 // Called to decide whether a given pattern is valid, or if it should be |
| 78 // rejected. Called while the user is editing an exception pattern. | 78 // rejected. Called while the user is editing an exception pattern. |
| 79 void CheckExceptionPatternValidity(const ListValue* args); | 79 void CheckExceptionPatternValidity(const ListValue* args); |
| 80 | 80 |
| 81 // Show the about:plugins page in a new tab. | 81 // Show the about:plugins page in a new tab. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 102 | 102 |
| 103 // Member variables --------------------------------------------------------- | 103 // Member variables --------------------------------------------------------- |
| 104 | 104 |
| 105 NotificationRegistrar notification_registrar_; | 105 NotificationRegistrar notification_registrar_; |
| 106 PrefChangeRegistrar pref_change_registrar_; | 106 PrefChangeRegistrar pref_change_registrar_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 108 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 111 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| OLD | NEW |