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

Side by Side Diff: remoting/client/frame_consumer_proxy.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/client/key_event_mapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // FrameConsumerProxy is used to allow a FrameConsumer on the UI thread to be 5 // FrameConsumerProxy is used to allow a FrameConsumer on the UI thread to be
6 // invoked by a Decoder on the decoder thread. The Detach() method is used by 6 // invoked by a Decoder on the decoder thread. The Detach() method is used by
7 // the proxy's owner before tearing down the FrameConsumer, to prevent any 7 // the proxy's owner before tearing down the FrameConsumer, to prevent any
8 // further invokations reaching it. 8 // further invokations reaching it.
9 9
10 #ifndef REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_ 10 #ifndef REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_
(...skipping 12 matching lines...) Expand all
23 class FrameConsumerProxy 23 class FrameConsumerProxy
24 : public base::RefCountedThreadSafe<FrameConsumerProxy>, 24 : public base::RefCountedThreadSafe<FrameConsumerProxy>,
25 public FrameConsumer { 25 public FrameConsumer {
26 public: 26 public:
27 // Constructs a proxy for |frame_consumer| which will trampoline invocations 27 // Constructs a proxy for |frame_consumer| which will trampoline invocations
28 // to |frame_consumer_message_loop|. 28 // to |frame_consumer_message_loop|.
29 FrameConsumerProxy(scoped_refptr<base::SingleThreadTaskRunner> task_runner, 29 FrameConsumerProxy(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
30 const base::WeakPtr<FrameConsumer>& frame_consumer); 30 const base::WeakPtr<FrameConsumer>& frame_consumer);
31 31
32 // FrameConsumer implementation. 32 // FrameConsumer implementation.
33 virtual void ApplyBuffer(const webrtc::DesktopSize& view_size, 33 void ApplyBuffer(const webrtc::DesktopSize& view_size,
34 const webrtc::DesktopRect& clip_area, 34 const webrtc::DesktopRect& clip_area,
35 webrtc::DesktopFrame* buffer, 35 webrtc::DesktopFrame* buffer,
36 const webrtc::DesktopRegion& region, 36 const webrtc::DesktopRegion& region,
37 const webrtc::DesktopRegion& shape) override; 37 const webrtc::DesktopRegion& shape) override;
38 virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) override; 38 void ReturnBuffer(webrtc::DesktopFrame* buffer) override;
39 virtual void SetSourceSize(const webrtc::DesktopSize& source_size, 39 void SetSourceSize(const webrtc::DesktopSize& source_size,
40 const webrtc::DesktopVector& dpi) override; 40 const webrtc::DesktopVector& dpi) override;
41 virtual PixelFormat GetPixelFormat() override; 41 PixelFormat GetPixelFormat() override;
42 42
43 private: 43 private:
44 friend class base::RefCountedThreadSafe<FrameConsumerProxy>; 44 friend class base::RefCountedThreadSafe<FrameConsumerProxy>;
45 virtual ~FrameConsumerProxy(); 45 ~FrameConsumerProxy() override;
46 46
47 base::WeakPtr<FrameConsumer> frame_consumer_; 47 base::WeakPtr<FrameConsumer> frame_consumer_;
48 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 48 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
49 49
50 PixelFormat pixel_format_; 50 PixelFormat pixel_format_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(FrameConsumerProxy); 52 DISALLOW_COPY_AND_ASSIGN(FrameConsumerProxy);
53 }; 53 };
54 54
55 } // namespace remoting 55 } // namespace remoting
56 56
57 #endif // REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_ 57 #endif // REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/client/key_event_mapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698