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

Side by Side Diff: ppapi/proxy/video_capture_resource.cc

Issue 14307011: ppapi: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/shared_impl/resource_tracker.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) 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 #include "ppapi/proxy/video_capture_resource.h" 5 #include "ppapi/proxy/video_capture_resource.h"
6 6
7 #include "ppapi/c/dev/ppp_video_capture_dev.h" 7 #include "ppapi/c/dev/ppp_video_capture_dev.h"
8 #include "ppapi/proxy/dispatch_reply_message.h" 8 #include "ppapi/proxy/dispatch_reply_message.h"
9 #include "ppapi/proxy/plugin_dispatcher.h" 9 #include "ppapi/proxy/plugin_dispatcher.h"
10 #include "ppapi/proxy/plugin_globals.h" 10 #include "ppapi/proxy/plugin_globals.h"
11 #include "ppapi/proxy/plugin_resource_tracker.h" 11 #include "ppapi/proxy/plugin_resource_tracker.h"
12 #include "ppapi/proxy/ppapi_messages.h" 12 #include "ppapi/proxy/ppapi_messages.h"
13 #include "ppapi/proxy/ppb_buffer_proxy.h" 13 #include "ppapi/proxy/ppb_buffer_proxy.h"
14 #include "ppapi/proxy/resource_message_params.h" 14 #include "ppapi/proxy/resource_message_params.h"
15 #include "ppapi/shared_impl/proxy_lock.h" 15 #include "ppapi/shared_impl/proxy_lock.h"
16 #include "ppapi/shared_impl/tracked_callback.h" 16 #include "ppapi/shared_impl/tracked_callback.h"
17 17
18 namespace ppapi { 18 namespace ppapi {
19 namespace proxy { 19 namespace proxy {
20 20
21 VideoCaptureResource::VideoCaptureResource( 21 VideoCaptureResource::VideoCaptureResource(
22 Connection connection, 22 Connection connection,
23 PP_Instance instance, 23 PP_Instance instance,
24 PluginDispatcher* dispatcher) 24 PluginDispatcher* dispatcher)
25 : PluginResource(connection, instance), 25 : PluginResource(connection, instance),
26 open_state_(BEFORE_OPEN), 26 open_state_(BEFORE_OPEN),
27 ALLOW_THIS_IN_INITIALIZER_LIST(enumeration_helper_(this)) { 27 enumeration_helper_(this) {
28 SendCreate(RENDERER, PpapiHostMsg_VideoCapture_Create()); 28 SendCreate(RENDERER, PpapiHostMsg_VideoCapture_Create());
29 29
30 ppp_video_capture_impl_ = static_cast<const PPP_VideoCapture_Dev*>( 30 ppp_video_capture_impl_ = static_cast<const PPP_VideoCapture_Dev*>(
31 dispatcher->local_get_interface()(PPP_VIDEO_CAPTURE_DEV_INTERFACE)); 31 dispatcher->local_get_interface()(PPP_VIDEO_CAPTURE_DEV_INTERFACE));
32 } 32 }
33 33
34 VideoCaptureResource::~VideoCaptureResource() { 34 VideoCaptureResource::~VideoCaptureResource() {
35 } 35 }
36 36
37 void VideoCaptureResource::OnReplyReceived( 37 void VideoCaptureResource::OnReplyReceived(
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 open_callback_->Run(params.result()); 231 open_callback_->Run(params.result());
232 } 232 }
233 233
234 void VideoCaptureResource::SetBufferInUse(uint32_t buffer_index) { 234 void VideoCaptureResource::SetBufferInUse(uint32_t buffer_index) {
235 CHECK(buffer_index < buffer_in_use_.size()); 235 CHECK(buffer_index < buffer_in_use_.size());
236 buffer_in_use_[buffer_index] = true; 236 buffer_in_use_[buffer_index] = true;
237 } 237 }
238 238
239 } // namespace proxy 239 } // namespace proxy
240 } // namespace ppapi 240 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/shared_impl/resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698