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

Side by Side Diff: webkit/plugins/ppapi/ppb_video_capture_impl.cc

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/ppb_video_capture_impl.h" 5 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // Maximum number of buffers to actually allocate. 31 // Maximum number of buffers to actually allocate.
32 const uint32_t kMaxBuffers = 20; 32 const uint32_t kMaxBuffers = 20;
33 33
34 } // namespace 34 } // namespace
35 35
36 namespace webkit { 36 namespace webkit {
37 namespace ppapi { 37 namespace ppapi {
38 38
39 PPB_VideoCapture_Impl::PPB_VideoCapture_Impl(PP_Instance instance) 39 PPB_VideoCapture_Impl::PPB_VideoCapture_Impl(PP_Instance instance)
40 : Resource(instance), 40 : Resource(::ppapi::OBJECT_IS_IMPL, instance),
41 buffer_count_hint_(0), 41 buffer_count_hint_(0),
42 ppp_videocapture_(NULL), 42 ppp_videocapture_(NULL),
43 status_(PP_VIDEO_CAPTURE_STATUS_STOPPED), 43 status_(PP_VIDEO_CAPTURE_STATUS_STOPPED),
44 is_dead_(false) { 44 is_dead_(false) {
45 } 45 }
46 46
47 PPB_VideoCapture_Impl::~PPB_VideoCapture_Impl() { 47 PPB_VideoCapture_Impl::~PPB_VideoCapture_Impl() {
48 } 48 }
49 49
50 bool PPB_VideoCapture_Impl::Init() { 50 bool PPB_VideoCapture_Impl::Init() {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 : in_use(false), 305 : in_use(false),
306 data(NULL), 306 data(NULL),
307 buffer() { 307 buffer() {
308 } 308 }
309 309
310 PPB_VideoCapture_Impl::BufferInfo::~BufferInfo() { 310 PPB_VideoCapture_Impl::BufferInfo::~BufferInfo() {
311 } 311 }
312 312
313 } // namespace ppapi 313 } // namespace ppapi
314 } // namespace webkit 314 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698