OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 ContentSetting flash_default_setting; | 71 ContentSetting flash_default_setting; |
72 MediaExceptions flash_exceptions; | 72 MediaExceptions flash_exceptions; |
73 bool flash_settings_initialized; | 73 bool flash_settings_initialized; |
74 uint32_t last_flash_refresh_request_id; | 74 uint32_t last_flash_refresh_request_id; |
75 | 75 |
76 // Whether the links to Flash settings pages are showed. | 76 // Whether the links to Flash settings pages are showed. |
77 bool show_flash_default_link; | 77 bool show_flash_default_link; |
78 bool show_flash_exceptions_link; | 78 bool show_flash_exceptions_link; |
79 | 79 |
80 // Cached Chrome media settings. | 80 // Cached Chrome media settings. |
81 ContentSetting default_setting; | 81 ContentSetting default_audio_setting; |
| 82 ContentSetting default_video_setting; |
82 bool policy_disable_audio; | 83 bool policy_disable_audio; |
83 bool policy_disable_video; | 84 bool policy_disable_video; |
84 bool default_setting_initialized; | 85 bool default_settings_initialized; |
85 MediaExceptions exceptions; | 86 MediaExceptions exceptions; |
86 bool exceptions_initialized; | 87 bool exceptions_initialized; |
87 }; | 88 }; |
88 | 89 |
89 // Used by ShowFlashMediaLink() to specify which link to show/hide. | 90 // Used by ShowFlashMediaLink() to specify which link to show/hide. |
90 enum LinkType { | 91 enum LinkType { |
91 DEFAULT_SETTING = 0, | 92 DEFAULT_SETTING = 0, |
92 EXCEPTIONS, | 93 EXCEPTIONS, |
93 }; | 94 }; |
94 | 95 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 scoped_ptr<content::HostZoomMap::Subscription> | 234 scoped_ptr<content::HostZoomMap::Subscription> |
234 signin_host_zoom_map_subscription_; | 235 signin_host_zoom_map_subscription_; |
235 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 236 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
236 | 237 |
237 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 238 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
238 }; | 239 }; |
239 | 240 |
240 } // namespace options | 241 } // namespace options |
241 | 242 |
242 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 243 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
OLD | NEW |