| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 namespace content { | 24 namespace content { |
| 25 class PepperPlatformVideoCapture; | 25 class PepperPlatformVideoCapture; |
| 26 class RendererPpapiHostImpl; | 26 class RendererPpapiHostImpl; |
| 27 | 27 |
| 28 class PepperVideoCaptureHost : public ppapi::host::ResourceHost { | 28 class PepperVideoCaptureHost : public ppapi::host::ResourceHost { |
| 29 public: | 29 public: |
| 30 PepperVideoCaptureHost(RendererPpapiHostImpl* host, | 30 PepperVideoCaptureHost(RendererPpapiHostImpl* host, |
| 31 PP_Instance instance, | 31 PP_Instance instance, |
| 32 PP_Resource resource); | 32 PP_Resource resource); |
| 33 | 33 |
| 34 virtual ~PepperVideoCaptureHost(); | 34 ~PepperVideoCaptureHost() override; |
| 35 | 35 |
| 36 bool Init(); | 36 bool Init(); |
| 37 | 37 |
| 38 virtual int32_t OnResourceMessageReceived( | 38 int32_t OnResourceMessageReceived( |
| 39 const IPC::Message& msg, | 39 const IPC::Message& msg, |
| 40 ppapi::host::HostMessageContext* context) override; | 40 ppapi::host::HostMessageContext* context) override; |
| 41 | 41 |
| 42 // These methods are called by PepperPlatformVideoCapture only. | 42 // These methods are called by PepperPlatformVideoCapture only. |
| 43 | 43 |
| 44 // Called when video capture is initialized. We can start | 44 // Called when video capture is initialized. We can start |
| 45 // video capture if |succeeded| is true. | 45 // video capture if |succeeded| is true. |
| 46 void OnInitialized(bool succeeded); | 46 void OnInitialized(bool succeeded); |
| 47 | 47 |
| 48 // Called when video capture has started successfully. | 48 // Called when video capture has started successfully. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 ppapi::host::ReplyMessageContext open_reply_context_; | 112 ppapi::host::ReplyMessageContext open_reply_context_; |
| 113 | 113 |
| 114 PepperDeviceEnumerationHostHelper enumeration_helper_; | 114 PepperDeviceEnumerationHostHelper enumeration_helper_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(PepperVideoCaptureHost); | 116 DISALLOW_COPY_AND_ASSIGN(PepperVideoCaptureHost); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace content | 119 } // namespace content |
| 120 | 120 |
| 121 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ | 121 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ |
| OLD | NEW |