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

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

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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "media/video/capture/video_capture.h" 15 #include "media/video/capture/video_capture.h"
16 #include "webkit/plugins/ppapi/plugin_delegate.h" 16 #include "webkit/plugins/ppapi/plugin_delegate.h"
17 17
18 class PepperPluginDelegateImpl;
19
20 namespace media { 18 namespace media {
21 class VideoCaptureHandlerProxy; 19 class VideoCaptureHandlerProxy;
22 } 20 }
23 21
22 namespace content {
23
24 class PepperPluginDelegateImpl;
25
24 class PepperPlatformVideoCaptureImpl 26 class PepperPlatformVideoCaptureImpl
25 : public webkit::ppapi::PluginDelegate::PlatformVideoCapture, 27 : public webkit::ppapi::PluginDelegate::PlatformVideoCapture,
26 public media::VideoCapture::EventHandler { 28 public media::VideoCapture::EventHandler {
27 public: 29 public:
28 PepperPlatformVideoCaptureImpl( 30 PepperPlatformVideoCaptureImpl(
29 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, 31 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate,
30 const std::string& device_id, 32 const std::string& device_id,
31 webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler* handler); 33 webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler* handler);
32 virtual ~PepperPlatformVideoCaptureImpl(); 34 virtual ~PepperPlatformVideoCaptureImpl();
33 35
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 75
74 media::VideoCapture* video_capture_; 76 media::VideoCapture* video_capture_;
75 77
76 // StartCapture() must be balanced by StopCapture(), otherwise this object 78 // StartCapture() must be balanced by StopCapture(), otherwise this object
77 // will leak. 79 // will leak.
78 bool unbalanced_start_; 80 bool unbalanced_start_;
79 81
80 DISALLOW_COPY_AND_ASSIGN(PepperPlatformVideoCaptureImpl); 82 DISALLOW_COPY_AND_ASSIGN(PepperPlatformVideoCaptureImpl);
81 }; 83 };
82 84
85 } // namespace content
86
83 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_IMPL_H_ 87 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698