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

Side by Side Diff: media/video/capture/video_capture_proxy.h

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/video/capture/video_capture.h" 10 #include "media/video/capture/video_capture.h"
(...skipping 25 matching lines...) Expand all
36 }; 36 };
37 37
38 // Called on main thread. 38 // Called on main thread.
39 VideoCaptureHandlerProxy( 39 VideoCaptureHandlerProxy(
40 VideoCapture::EventHandler* proxied, 40 VideoCapture::EventHandler* proxied,
41 scoped_refptr<base::MessageLoopProxy> main_message_loop); 41 scoped_refptr<base::MessageLoopProxy> main_message_loop);
42 virtual ~VideoCaptureHandlerProxy(); 42 virtual ~VideoCaptureHandlerProxy();
43 43
44 // Retrieves the state of the VideoCapture. Must be called on main thread. 44 // Retrieves the state of the VideoCapture. Must be called on main thread.
45 const VideoCaptureState& state() const { return state_; } 45 const VideoCaptureState& state() const { return state_; }
46 VideoCapture::EventHandler* proxied() const { return proxied_; }
47 46
48 // VideoCapture::EventHandler implementation, called on VC thread. 47 // VideoCapture::EventHandler implementation, called on VC thread.
49 virtual void OnStarted(VideoCapture* capture) OVERRIDE; 48 virtual void OnStarted(VideoCapture* capture) OVERRIDE;
50 virtual void OnStopped(VideoCapture* capture) OVERRIDE; 49 virtual void OnStopped(VideoCapture* capture) OVERRIDE;
51 virtual void OnPaused(VideoCapture* capture) OVERRIDE; 50 virtual void OnPaused(VideoCapture* capture) OVERRIDE;
52 virtual void OnError(VideoCapture* capture, int error_code) OVERRIDE; 51 virtual void OnError(VideoCapture* capture, int error_code) OVERRIDE;
53 virtual void OnRemoved(VideoCapture* capture) OVERRIDE; 52 virtual void OnRemoved(VideoCapture* capture) OVERRIDE;
54 virtual void OnBufferReady( 53 virtual void OnBufferReady(
55 VideoCapture* capture, 54 VideoCapture* capture,
56 scoped_refptr<VideoCapture::VideoFrameBuffer> buffer) OVERRIDE; 55 scoped_refptr<VideoCapture::VideoFrameBuffer> buffer) OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Only accessed from main thread. 87 // Only accessed from main thread.
89 VideoCapture::EventHandler* proxied_; 88 VideoCapture::EventHandler* proxied_;
90 VideoCaptureState state_; 89 VideoCaptureState state_;
91 90
92 scoped_refptr<base::MessageLoopProxy> main_message_loop_; 91 scoped_refptr<base::MessageLoopProxy> main_message_loop_;
93 }; 92 };
94 93
95 } // namespace media 94 } // namespace media
96 95
97 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ 96 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698