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