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

Side by Side Diff: content/renderer/pepper/pepper_platform_video_capture_impl.cc

Issue 9959037: Put the Pepper stuff in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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) 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 "content/renderer/pepper/pepper_platform_video_capture_impl.h" 5 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "content/renderer/media/video_capture_impl_manager.h" 10 #include "content/renderer/media/video_capture_impl_manager.h"
11 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 11 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
12 #include "content/renderer/render_thread_impl.h" 12 #include "content/renderer/render_thread_impl.h"
13 #include "media/video/capture/video_capture_proxy.h" 13 #include "media/video/capture/video_capture_proxy.h"
14 14
15 namespace content {
16
15 PepperPlatformVideoCaptureImpl::PepperPlatformVideoCaptureImpl( 17 PepperPlatformVideoCaptureImpl::PepperPlatformVideoCaptureImpl(
16 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, 18 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate,
17 const std::string& device_id, 19 const std::string& device_id,
18 webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler* handler) 20 webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler* handler)
19 : plugin_delegate_(plugin_delegate), 21 : plugin_delegate_(plugin_delegate),
20 device_id_(device_id), 22 device_id_(device_id),
21 session_id_(0), 23 session_id_(0),
22 ALLOW_THIS_IN_INITIALIZER_LIST( 24 ALLOW_THIS_IN_INITIALIZER_LIST(
23 handler_proxy_(new media::VideoCaptureHandlerProxy( 25 handler_proxy_(new media::VideoCaptureHandlerProxy(
24 this, base::MessageLoopProxy::current()))), 26 this, base::MessageLoopProxy::current()))),
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 if (succeeded) { 168 if (succeeded) {
167 label_ = label; 169 label_ = label;
168 session_id_ = plugin_delegate_->GetSessionID(PP_DEVICETYPE_DEV_VIDEOCAPTURE, 170 session_id_ = plugin_delegate_->GetSessionID(PP_DEVICETYPE_DEV_VIDEOCAPTURE,
169 label); 171 label);
170 Initialize(); 172 Initialize();
171 } 173 }
172 174
173 if (handler_) 175 if (handler_)
174 handler_->OnInitialized(this, succeeded); 176 handler_->OnInitialized(this, succeeded);
175 } 177 }
178
179 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_video_capture_impl.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698