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

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

Issue 631903003: Move VideoDestinationHandler processing to the IO-thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 2 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
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 <string>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
11 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
12 #include "content/renderer/media/webrtc/video_destination_handler.h" 14 #include "content/renderer/media/webrtc/video_destination_handler.h"
13 #include "ppapi/c/pp_time.h" 15 #include "ppapi/c/pp_time.h"
14 #include "ppapi/host/resource_host.h" 16 #include "ppapi/host/resource_host.h"
15 17
16 namespace content { 18 namespace content {
17 19
(...skipping 15 matching lines...) Expand all
33 private: 35 private:
34 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, 36 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
35 const std::string& stream_url); 37 const std::string& stream_url);
36 int32_t OnHostMsgPutFrame(ppapi::host::HostMessageContext* context, 38 int32_t OnHostMsgPutFrame(ppapi::host::HostMessageContext* context,
37 const ppapi::HostResource& image_data_resource, 39 const ppapi::HostResource& image_data_resource,
38 PP_TimeTicks timestamp); 40 PP_TimeTicks timestamp);
39 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); 41 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
40 42
41 RendererPpapiHost* renderer_ppapi_host_; 43 RendererPpapiHost* renderer_ppapi_host_;
42 44
43 scoped_ptr<FrameWriterInterface> frame_writer_; 45 VideoDestinationHandler::FrameWriterCallback frame_writer_;
44 46
45 base::WeakPtrFactory<PepperVideoDestinationHost> weak_factory_; 47 base::WeakPtrFactory<PepperVideoDestinationHost> weak_factory_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(PepperVideoDestinationHost); 49 DISALLOW_COPY_AND_ASSIGN(PepperVideoDestinationHost);
48 }; 50 };
49 51
50 } // namespace content 52 } // namespace content
51 53
52 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_ 54 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_DESTINATION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698