123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- // Copyright 2020 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #include "components/content_settings/browser/test_page_specific_content_settings_delegate.h"
- #include "base/callback_helpers.h"
- namespace content_settings {
- TestPageSpecificContentSettingsDelegate::
- TestPageSpecificContentSettingsDelegate(
- PrefService* prefs,
- HostContentSettingsMap* settings_map)
- : prefs_(prefs), settings_map_(settings_map) {}
- TestPageSpecificContentSettingsDelegate::
- ~TestPageSpecificContentSettingsDelegate() = default;
- void TestPageSpecificContentSettingsDelegate::UpdateLocationBar() {}
- PrefService* TestPageSpecificContentSettingsDelegate::GetPrefs() {
- return prefs_;
- }
- HostContentSettingsMap*
- TestPageSpecificContentSettingsDelegate::GetSettingsMap() {
- return settings_map_.get();
- }
- void TestPageSpecificContentSettingsDelegate::
- SetDefaultRendererContentSettingRules(content::RenderFrameHost* rfh,
- RendererContentSettingRules* rules) {}
- std::vector<storage::FileSystemType>
- TestPageSpecificContentSettingsDelegate::GetAdditionalFileSystemTypes() {
- return {};
- }
- browsing_data::CookieHelper::IsDeletionDisabledCallback
- TestPageSpecificContentSettingsDelegate::GetIsDeletionDisabledCallback() {
- return base::NullCallback();
- }
- bool TestPageSpecificContentSettingsDelegate::IsMicrophoneCameraStateChanged(
- PageSpecificContentSettings::MicrophoneCameraState microphone_camera_state,
- const std::string& media_stream_selected_audio_device,
- const std::string& media_stream_selected_video_device) {
- return false;
- }
- PageSpecificContentSettings::MicrophoneCameraState
- TestPageSpecificContentSettingsDelegate::GetMicrophoneCameraState() {
- return PageSpecificContentSettings::MICROPHONE_CAMERA_NOT_ACCESSED;
- }
- void TestPageSpecificContentSettingsDelegate::OnContentAllowed(
- ContentSettingsType type) {}
- void TestPageSpecificContentSettingsDelegate::OnContentBlocked(
- ContentSettingsType type) {}
- void TestPageSpecificContentSettingsDelegate::OnStorageAccessAllowed(
- content_settings::mojom::ContentSettingsManager::StorageType storage_type,
- const url::Origin& origin,
- content::Page& page) {}
- void TestPageSpecificContentSettingsDelegate::OnCookieAccessAllowed(
- const net::CookieList& accessed_cookies,
- content::Page& page) {}
- void TestPageSpecificContentSettingsDelegate::OnServiceWorkerAccessAllowed(
- const url::Origin& origin,
- content::Page& page) {}
- } // namespace content_settings
|