diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 00:27:04 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 00:27:04 +0000 |
commit | 00d320a6e403c645dc00d47217028aef5f2792a0 (patch) | |
tree | 4cb1feea9a8c9819c95d1520db3ebd2dff69a3c6 /ppapi/proxy/ppb_video_capture_proxy.cc | |
parent | 2354c0fa1003d87661d20255211306ae4c9cf622 (diff) | |
download | chromium_src-00d320a6e403c645dc00d47217028aef5f2792a0.zip chromium_src-00d320a6e403c645dc00d47217028aef5f2792a0.tar.gz chromium_src-00d320a6e403c645dc00d47217028aef5f2792a0.tar.bz2 |
Make a global enum to differentiate impl & proxy.
Use this in resource constructors and remove all the old weird structs that we
used to tell which one to call. This removes some extra code we had to deal
with this.
Review URL: http://codereview.chromium.org/9391013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_video_capture_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_video_capture_proxy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/proxy/ppb_video_capture_proxy.cc b/ppapi/proxy/ppb_video_capture_proxy.cc index 3df4de8..af39587 100644 --- a/ppapi/proxy/ppb_video_capture_proxy.cc +++ b/ppapi/proxy/ppb_video_capture_proxy.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -249,7 +249,7 @@ class VideoCapture : public ppapi::thunk::PPB_VideoCapture_API, }; VideoCapture::VideoCapture(const HostResource& resource) - : Resource(resource), + : Resource(OBJECT_IS_PROXY, resource), status_(PP_VIDEO_CAPTURE_STATUS_STOPPED) { } |