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

Unified 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 casts. Use base::Time for timestamp calculation.x 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_video_destination_host.h
diff --git a/content/renderer/pepper/pepper_video_destination_host.h b/content/renderer/pepper/pepper_video_destination_host.h
index 54941cb89708cb42fd895e46774c45281855faf4..aa166a5a80c1be9b407bdef3e6693e5bf0f71b44 100644
--- a/content/renderer/pepper/pepper_video_destination_host.h
+++ b/content/renderer/pepper/pepper_video_destination_host.h
@@ -6,8 +6,11 @@
#define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/time.h"
yzshen1 2013/05/06 20:40:18 nit: please move it to .cc since the header doesn'
bbudge 2013/05/06 20:52:01 Done.
#include "content/common/content_export.h"
+#include "content/renderer/media/video_destination_handler.h"
#include "ppapi/c/pp_time.h"
#include "ppapi/host/resource_host.h"
@@ -32,7 +35,7 @@ class CONTENT_EXPORT PepperVideoDestinationHost
int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
const std::string& stream_url);
int32_t OnHostMsgPutFrame(ppapi::host::HostMessageContext* context,
- const ppapi::HostResource& image_data,
+ const ppapi::HostResource& image_data_resource,
PP_TimeTicks timestamp);
int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
@@ -40,6 +43,8 @@ class CONTENT_EXPORT PepperVideoDestinationHost
base::WeakPtrFactory<PepperVideoDestinationHost> weak_factory_;
+ scoped_ptr<content::FrameWriterInterface> frame_writer_;
+
DISALLOW_COPY_AND_ASSIGN(PepperVideoDestinationHost);
};

Powered by Google App Engine
This is Rietveld 408576698