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

Side by Side Diff: components/content_settings/core/browser/website_settings_registry.cc

Issue 1382783002: Store USB device permissions in website settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove UsbPermissionContext and add ChooserPermissionContext helper functions. Created 5 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/content_settings/core/browser/website_settings_registry.h" 5 #include "components/content_settings/core/browser/website_settings_registry.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "components/content_settings/core/common/content_settings.h" 8 #include "components/content_settings/core/common/content_settings.h"
9 9
10 namespace { 10 namespace {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Register(CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE, 81 Register(CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE,
82 "auto-select-certificate", nullptr, WebsiteSettingsInfo::UNSYNCABLE, 82 "auto-select-certificate", nullptr, WebsiteSettingsInfo::UNSYNCABLE,
83 WebsiteSettingsInfo::NOT_LOSSY); 83 WebsiteSettingsInfo::NOT_LOSSY);
84 Register(CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS, "ssl-cert-decisions", 84 Register(CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS, "ssl-cert-decisions",
85 nullptr, WebsiteSettingsInfo::UNSYNCABLE, 85 nullptr, WebsiteSettingsInfo::UNSYNCABLE,
86 WebsiteSettingsInfo::NOT_LOSSY); 86 WebsiteSettingsInfo::NOT_LOSSY);
87 Register(CONTENT_SETTINGS_TYPE_APP_BANNER, "app-banner", nullptr, 87 Register(CONTENT_SETTINGS_TYPE_APP_BANNER, "app-banner", nullptr,
88 WebsiteSettingsInfo::UNSYNCABLE, WebsiteSettingsInfo::LOSSY); 88 WebsiteSettingsInfo::UNSYNCABLE, WebsiteSettingsInfo::LOSSY);
89 Register(CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, "site-engagement", nullptr, 89 Register(CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, "site-engagement", nullptr,
90 WebsiteSettingsInfo::UNSYNCABLE, WebsiteSettingsInfo::LOSSY); 90 WebsiteSettingsInfo::UNSYNCABLE, WebsiteSettingsInfo::LOSSY);
91 Register(CONTENT_SETTINGS_TYPE_USB_CHOOSER_DATA, "usb-chooser-data", nullptr,
92 WebsiteSettingsInfo::UNSYNCABLE, WebsiteSettingsInfo::NOT_LOSSY);
91 } 93 }
92 94
93 } // namespace content_settings 95 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698