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/strings/stringprintf.h" | |
9 #include "build/build_config.h" | 8 #include "build/build_config.h" |
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
11 #include "chrome/browser/permissions/permission_util.h" | 10 #include "chrome/browser/permissions/permission_util.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
14 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/permission_type.h" | 15 #include "content/public/browser/permission_type.h" |
17 #include "content/public/browser/render_frame_host.h" | 16 #include "content/public/browser/render_frame_host.h" |
18 #include "content/public/browser/user_metrics.h" | 17 #include "content/public/browser/user_metrics.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 content_setting = CONTENT_SETTING_BLOCK; | 223 content_setting = CONTENT_SETTING_BLOCK; |
225 persist = true; | 224 persist = true; |
226 break; | 225 break; |
227 } | 226 } |
228 | 227 |
229 NotifyPermissionSet( | 228 NotifyPermissionSet( |
230 id, requesting_origin, embedding_origin, callback, | 229 id, requesting_origin, embedding_origin, callback, |
231 persist, content_setting); | 230 persist, content_setting); |
232 } | 231 } |
233 #endif | 232 #endif |
OLD | NEW |