| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/site_settings_helper.h" | 5 #include "chrome/browser/ui/webui/site_settings_helper.h" |
| 6 | 6 |
| 7 #include <functional> | 7 #include <functional> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 {CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, "media-stream-mic"}, | 66 {CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, "media-stream-mic"}, |
| 67 {CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, "media-stream-camera"}, | 67 {CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, "media-stream-camera"}, |
| 68 {CONTENT_SETTINGS_TYPE_PPAPI_BROKER, "ppapi-broker"}, | 68 {CONTENT_SETTINGS_TYPE_PPAPI_BROKER, "ppapi-broker"}, |
| 69 {CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS, "multiple-automatic-downloads"}, | 69 {CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS, "multiple-automatic-downloads"}, |
| 70 {CONTENT_SETTINGS_TYPE_MIDI_SYSEX, "midi-sysex"}, | 70 {CONTENT_SETTINGS_TYPE_MIDI_SYSEX, "midi-sysex"}, |
| 71 {CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS, "ssl-cert-decisions"}, | 71 {CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS, "ssl-cert-decisions"}, |
| 72 #if defined(OS_CHROMEOS) | 72 #if defined(OS_CHROMEOS) |
| 73 {CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER, "protectedContent"}, | 73 {CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER, "protectedContent"}, |
| 74 #endif | 74 #endif |
| 75 {CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, "background-sync"}, | 75 {CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, "background-sync"}, |
| 76 {CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER, "subresource-filter"}, |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace | 79 } // namespace |
| 79 | 80 |
| 80 bool HasRegisteredGroupName(ContentSettingsType type) { | 81 bool HasRegisteredGroupName(ContentSettingsType type) { |
| 81 for (size_t i = 0; i < arraysize(kContentSettingsTypeGroupNames); ++i) { | 82 for (size_t i = 0; i < arraysize(kContentSettingsTypeGroupNames); ++i) { |
| 82 if (type == kContentSettingsTypeGroupNames[i].type) | 83 if (type == kContentSettingsTypeGroupNames[i].type) |
| 83 return true; | 84 return true; |
| 84 } | 85 } |
| 85 return false; | 86 return false; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 } | 454 } |
| 454 } | 455 } |
| 455 | 456 |
| 456 for (auto& one_provider_exceptions : all_provider_exceptions) { | 457 for (auto& one_provider_exceptions : all_provider_exceptions) { |
| 457 for (auto& exception : one_provider_exceptions) | 458 for (auto& exception : one_provider_exceptions) |
| 458 exceptions->Append(std::move(exception)); | 459 exceptions->Append(std::move(exception)); |
| 459 } | 460 } |
| 460 } | 461 } |
| 461 | 462 |
| 462 } // namespace site_settings | 463 } // namespace site_settings |
| OLD | NEW |