Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Side by Side Diff: content/renderer/pepper/pepper_video_destination_host.h

Issue 14968002: Glue code to connect PPAPI proxy to MediaStream sources and destinations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix time delta calculation which was correct before. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_video_destination_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/renderer/media/video_destination_handler.h"
11 #include "ppapi/c/pp_time.h" 13 #include "ppapi/c/pp_time.h"
12 #include "ppapi/host/resource_host.h" 14 #include "ppapi/host/resource_host.h"
13 15
14 namespace content { 16 namespace content {
15 17
16 class RendererPpapiHost; 18 class RendererPpapiHost;
17 19
18 class CONTENT_EXPORT PepperVideoDestinationHost 20 class CONTENT_EXPORT PepperVideoDestinationHost
19 : public ppapi::host::ResourceHost { 21 : public ppapi::host::ResourceHost {
20 public: 22 public:
21 PepperVideoDestinationHost(RendererPpapiHost* host, 23 PepperVideoDestinationHost(RendererPpapiHost* host,
22 PP_Instance instance, 24 PP_Instance instance,
23 PP_Resource resource); 25 PP_Resource resource);
24 26
25 virtual ~PepperVideoDestinationHost(); 27 virtual ~PepperVideoDestinationHost();
26 28
27 virtual int32_t OnResourceMessageReceived( 29 virtual int32_t OnResourceMessageReceived(
28 const IPC::Message& msg, 30 const IPC::Message& msg,
29 ppapi::host::HostMessageContext* context) OVERRIDE; 31 ppapi::host::HostMessageContext* context) OVERRIDE;
30 32
31 private: 33 private:
32 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, 34 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
33 const std::string& stream_url); 35 const std::string& stream_url);
34 int32_t OnHostMsgPutFrame(ppapi::host::HostMessageContext* context, 36 int32_t OnHostMsgPutFrame(ppapi::host::HostMessageContext* context,
35 const ppapi::HostResource& image_data, 37 const ppapi::HostResource& image_data_resource,
36 PP_TimeTicks timestamp); 38 PP_TimeTicks timestamp);
37 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); 39 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
38 40
39 RendererPpapiHost* renderer_ppapi_host_; 41 RendererPpapiHost* renderer_ppapi_host_;
40 42
41 base::WeakPtrFactory<PepperVideoDestinationHost> weak_factory_; 43 base::WeakPtrFactory<PepperVideoDestinationHost> weak_factory_;
42 44
45 scoped_ptr<content::FrameWriterInterface> frame_writer_;
46
43 DISALLOW_COPY_AND_ASSIGN(PepperVideoDestinationHost); 47 DISALLOW_COPY_AND_ASSIGN(PepperVideoDestinationHost);
44 }; 48 };
45 49
46 } // namespace content 50 } // namespace content
47 51
48 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_ 52 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_video_destination_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698