OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/output_protection_proxy.h" | 5 #include "chrome/browser/media/output_protection_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 8 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 #include "ui/display/types/display_constants.h" | 11 #include "ui/display/types/display_constants.h" |
12 | 12 |
13 namespace chrome { | 13 namespace chrome { |
14 | 14 |
15 OutputProtectionProxy::OutputProtectionProxy(int render_process_id, | 15 OutputProtectionProxy::OutputProtectionProxy(int render_process_id, |
16 int render_frame_id) | 16 int render_frame_id) |
17 : render_process_id_(render_process_id), | 17 : render_process_id_(render_process_id), |
18 render_frame_id_(render_frame_id), | 18 render_frame_id_(render_frame_id), |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ->IsInsecureCapturingInProgress(render_process_id_, | 80 ->IsInsecureCapturingInProgress(render_process_id_, |
81 render_frame_id_); | 81 render_frame_id_); |
82 if (is_insecure_capture_detected) | 82 if (is_insecure_capture_detected) |
83 new_link_mask |= ui::DISPLAY_CONNECTION_TYPE_NETWORK; | 83 new_link_mask |= ui::DISPLAY_CONNECTION_TYPE_NETWORK; |
84 } | 84 } |
85 | 85 |
86 callback.Run(success, new_link_mask, protection_mask); | 86 callback.Run(success, new_link_mask, protection_mask); |
87 } | 87 } |
88 | 88 |
89 } // namespace chrome | 89 } // namespace chrome |
OLD | NEW |