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

Side by Side Diff: chrome/browser/content_settings/permission_queue_controller.cc

Issue 541813002: Componentize chrome/common/content_settings files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/content_settings/permission_queue_controller.h" 5 #include "chrome/browser/content_settings/permission_queue_controller.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/content_settings/permission_context_uma_util.h" 10 #include "chrome/browser/content_settings/permission_context_uma_util.h"
11 #include "chrome/browser/geolocation/geolocation_infobar_delegate.h" 11 #include "chrome/browser/geolocation/geolocation_infobar_delegate.h"
12 #include "chrome/browser/infobars/infobar_service.h" 12 #include "chrome/browser/infobars/infobar_service.h"
13 #include "chrome/browser/media/midi_permission_infobar_delegate.h" 13 #include "chrome/browser/media/midi_permission_infobar_delegate.h"
14 #include "chrome/browser/notifications/desktop_notification_infobar_delegate.h" 14 #include "chrome/browser/notifications/desktop_notification_infobar_delegate.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/services/gcm/push_messaging_infobar_delegate.h" 16 #include "chrome/browser/services/gcm/push_messaging_infobar_delegate.h"
17 #include "chrome/browser/tab_contents/tab_util.h" 17 #include "chrome/browser/tab_contents/tab_util.h"
18 #include "chrome/common/content_settings.h"
19 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "components/content_settings/core/common/content_settings.h"
20 #include "components/infobars/core/infobar.h" 20 #include "components/infobars/core/infobar.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "content/public/browser/notification_details.h" 22 #include "content/public/browser/notification_details.h"
23 #include "content/public/browser/notification_source.h" 23 #include "content/public/browser/notification_source.h"
24 #include "content/public/browser/notification_types.h" 24 #include "content/public/browser/notification_types.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 #include "content/public/common/url_constants.h" 26 #include "content/public/common/url_constants.h"
27 27
28 #if defined(OS_ANDROID) 28 #if defined(OS_ANDROID)
29 #include "chrome/browser/media/protected_media_identifier_infobar_delegate.h" 29 #include "chrome/browser/media/protected_media_identifier_infobar_delegate.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 ContentSetting content_setting = 370 ContentSetting content_setting =
371 allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK; 371 allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK;
372 profile_->GetHostContentSettingsMap()->SetContentSetting( 372 profile_->GetHostContentSettingsMap()->SetContentSetting(
373 ContentSettingsPattern::FromURLNoWildcard(requesting_frame.GetOrigin()), 373 ContentSettingsPattern::FromURLNoWildcard(requesting_frame.GetOrigin()),
374 ContentSettingsPattern::FromURLNoWildcard(embedder.GetOrigin()), 374 ContentSettingsPattern::FromURLNoWildcard(embedder.GetOrigin()),
375 type_, 375 type_,
376 std::string(), 376 std::string(),
377 content_setting); 377 content_setting);
378 } 378 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698