| 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 #include "chrome/browser/ui/webui/options2/content_settings_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/content_settings_handler2.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 {CONTENT_SETTINGS_TYPE_IMAGES, "images"}, | 329 {CONTENT_SETTINGS_TYPE_IMAGES, "images"}, |
| 330 {CONTENT_SETTINGS_TYPE_JAVASCRIPT, "javascript"}, | 330 {CONTENT_SETTINGS_TYPE_JAVASCRIPT, "javascript"}, |
| 331 {CONTENT_SETTINGS_TYPE_PLUGINS, "plugins"}, | 331 {CONTENT_SETTINGS_TYPE_PLUGINS, "plugins"}, |
| 332 {CONTENT_SETTINGS_TYPE_POPUPS, "popups"}, | 332 {CONTENT_SETTINGS_TYPE_POPUPS, "popups"}, |
| 333 {CONTENT_SETTINGS_TYPE_GEOLOCATION, "location"}, | 333 {CONTENT_SETTINGS_TYPE_GEOLOCATION, "location"}, |
| 334 {CONTENT_SETTINGS_TYPE_NOTIFICATIONS, "notifications"}, | 334 {CONTENT_SETTINGS_TYPE_NOTIFICATIONS, "notifications"}, |
| 335 {CONTENT_SETTINGS_TYPE_INTENTS, "intents"}, | 335 {CONTENT_SETTINGS_TYPE_INTENTS, "intents"}, |
| 336 {CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE, "auto-select-certificate"}, | 336 {CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE, "auto-select-certificate"}, |
| 337 {CONTENT_SETTINGS_TYPE_FULLSCREEN, "fullscreen"}, | 337 {CONTENT_SETTINGS_TYPE_FULLSCREEN, "fullscreen"}, |
| 338 {CONTENT_SETTINGS_TYPE_MOUSELOCK, "mouselock"}, | 338 {CONTENT_SETTINGS_TYPE_MOUSELOCK, "mouselock"}, |
| 339 {CONTENT_SETTINGS_TYPE_REGISTER_PROTOCOL_HANDLER, |
| 340 "register-protocol-handler"}, |
| 339 {EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC, "pepper-flash-cameramic"}, | 341 {EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC, "pepper-flash-cameramic"}, |
| 340 }; | 342 }; |
| 341 | 343 |
| 342 ContentSettingsHandler::ContentSettingsHandler() { | 344 ContentSettingsHandler::ContentSettingsHandler() { |
| 343 } | 345 } |
| 344 | 346 |
| 345 ContentSettingsHandler::~ContentSettingsHandler() { | 347 ContentSettingsHandler::~ContentSettingsHandler() { |
| 346 } | 348 } |
| 347 | 349 |
| 348 void ContentSettingsHandler::GetLocalizedValues( | 350 void ContentSettingsHandler::GetLocalizedValues( |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) { | 1259 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) { |
| 1258 if (type == kExContentSettingsTypeGroupNames[i].type) | 1260 if (type == kExContentSettingsTypeGroupNames[i].type) |
| 1259 return kExContentSettingsTypeGroupNames[i].name; | 1261 return kExContentSettingsTypeGroupNames[i].name; |
| 1260 } | 1262 } |
| 1261 | 1263 |
| 1262 NOTREACHED(); | 1264 NOTREACHED(); |
| 1263 return std::string(); | 1265 return std::string(); |
| 1264 } | 1266 } |
| 1265 | 1267 |
| 1266 } // namespace options2 | 1268 } // namespace options2 |
| OLD | NEW |