| 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/renderer_host/pepper/pepper_output_protection_message_f
ilter.h" | 5 #include "chrome/browser/renderer_host/pepper/pepper_output_protection_message_f
ilter.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/media_capture_devices_dispatcher.h" |
| 9 #include "content/public/browser/browser_ppapi_host.h" | 9 #include "content/public/browser/browser_ppapi_host.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Output protection delegate. All methods except constructor should be | 83 // Output protection delegate. All methods except constructor should be |
| 84 // invoked in UI thread. | 84 // invoked in UI thread. |
| 85 class PepperOutputProtectionMessageFilter::Delegate | 85 class PepperOutputProtectionMessageFilter::Delegate |
| 86 : public aura::WindowObserver { | 86 : public aura::WindowObserver { |
| 87 public: | 87 public: |
| 88 Delegate(int render_process_id, int render_frame_id); | 88 Delegate(int render_process_id, int render_frame_id); |
| 89 virtual ~Delegate(); | 89 virtual ~Delegate(); |
| 90 | 90 |
| 91 // aura::WindowObserver overrides. | 91 // aura::WindowObserver overrides. |
| 92 virtual void OnWindowHierarchyChanged( | 92 virtual void OnWindowHierarchyChanged( |
| 93 const aura::WindowObserver::HierarchyChangeParams& params) OVERRIDE; | 93 const aura::WindowObserver::HierarchyChangeParams& params) override; |
| 94 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 94 virtual void OnWindowDestroying(aura::Window* window) override; |
| 95 | 95 |
| 96 int32_t OnQueryStatus(uint32_t* link_mask, uint32_t* protection_mask); | 96 int32_t OnQueryStatus(uint32_t* link_mask, uint32_t* protection_mask); |
| 97 int32_t OnEnableProtection(uint32_t desired_method_mask); | 97 int32_t OnEnableProtection(uint32_t desired_method_mask); |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 ui::DisplayConfigurator::ContentProtectionClientId GetClientId(); | 100 ui::DisplayConfigurator::ContentProtectionClientId GetClientId(); |
| 101 | 101 |
| 102 // Used to lookup the WebContents associated with this PP_Instance. | 102 // Used to lookup the WebContents associated with this PP_Instance. |
| 103 int render_process_id_; | 103 int render_process_id_; |
| 104 int render_frame_id_; | 104 int render_frame_id_; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 SendReply(reply_context, | 315 SendReply(reply_context, |
| 316 PpapiPluginMsg_OutputProtection_EnableProtectionReply()); | 316 PpapiPluginMsg_OutputProtection_EnableProtectionReply()); |
| 317 return PP_OK_COMPLETIONPENDING; | 317 return PP_OK_COMPLETIONPENDING; |
| 318 #else | 318 #else |
| 319 NOTIMPLEMENTED(); | 319 NOTIMPLEMENTED(); |
| 320 return PP_ERROR_NOTSUPPORTED; | 320 return PP_ERROR_NOTSUPPORTED; |
| 321 #endif | 321 #endif |
| 322 } | 322 } |
| 323 | 323 |
| 324 } // namespace chrome | 324 } // namespace chrome |
| OLD | NEW |