OLD | NEW |
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/media/protected_media_identifier_permission_context.h" | 5 #include "chrome/browser/media/protected_media_identifier_permission_context.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
10 #include "build/build_config.h" | 9 #include "build/build_config.h" |
11 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
12 #include "chrome/browser/permissions/permission_util.h" | 11 #include "chrome/browser/permissions/permission_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/prefs/pref_service.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/permission_type.h" | 16 #include "content/public/browser/permission_type.h" |
17 #include "content/public/browser/render_frame_host.h" | 17 #include "content/public/browser/render_frame_host.h" |
18 #include "content/public/browser/user_metrics.h" | 18 #include "content/public/browser/user_metrics.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
21 #include <utility> | 21 #include <utility> |
22 | 22 |
23 #include "chrome/browser/chromeos/attestation/platform_verification_dialog.h" | 23 #include "chrome/browser/chromeos/attestation/platform_verification_dialog.h" |
24 #include "chrome/browser/chromeos/settings/cros_settings.h" | 24 #include "chrome/browser/chromeos/settings/cros_settings.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 content_setting = CONTENT_SETTING_BLOCK; | 261 content_setting = CONTENT_SETTING_BLOCK; |
262 persist = true; | 262 persist = true; |
263 break; | 263 break; |
264 } | 264 } |
265 | 265 |
266 NotifyPermissionSet( | 266 NotifyPermissionSet( |
267 id, requesting_origin, embedding_origin, callback, | 267 id, requesting_origin, embedding_origin, callback, |
268 persist, content_setting); | 268 persist, content_setting); |
269 } | 269 } |
270 #endif | 270 #endif |
OLD | NEW |