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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VIDEO_SOURCE_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_SOURCE_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_SOURCE_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_SOURCE_HOST_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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 class CONTENT_EXPORT PepperVideoSourceHost : public ppapi::host::ResourceHost { 25 class CONTENT_EXPORT PepperVideoSourceHost : public ppapi::host::ResourceHost {
26 public: 26 public:
27 PepperVideoSourceHost(RendererPpapiHost* host, 27 PepperVideoSourceHost(RendererPpapiHost* host,
28 PP_Instance instance, 28 PP_Instance instance,
29 PP_Resource resource); 29 PP_Resource resource);
30 30
31 virtual ~PepperVideoSourceHost(); 31 virtual ~PepperVideoSourceHost();
32 32
33 virtual int32_t OnResourceMessageReceived( 33 virtual int32_t OnResourceMessageReceived(
34 const IPC::Message& msg, 34 const IPC::Message& msg,
35 ppapi::host::HostMessageContext* context) OVERRIDE; 35 ppapi::host::HostMessageContext* context) override;
36 36
37 private: 37 private:
38 // This helper object receives frames on a video worker thread and passes 38 // This helper object receives frames on a video worker thread and passes
39 // them on to us. 39 // them on to us.
40 class FrameReceiver : public FrameReaderInterface, 40 class FrameReceiver : public FrameReaderInterface,
41 public base::RefCountedThreadSafe<FrameReceiver> { 41 public base::RefCountedThreadSafe<FrameReceiver> {
42 public: 42 public:
43 explicit FrameReceiver(const base::WeakPtr<PepperVideoSourceHost>& host); 43 explicit FrameReceiver(const base::WeakPtr<PepperVideoSourceHost>& host);
44 44
45 // FrameReaderInterface implementation. 45 // FrameReaderInterface implementation.
46 virtual void GotFrame(const scoped_refptr<media::VideoFrame>& frame) 46 virtual void GotFrame(const scoped_refptr<media::VideoFrame>& frame)
47 OVERRIDE; 47 override;
48 48
49 private: 49 private:
50 friend class base::RefCountedThreadSafe<FrameReceiver>; 50 friend class base::RefCountedThreadSafe<FrameReceiver>;
51 virtual ~FrameReceiver(); 51 virtual ~FrameReceiver();
52 52
53 base::WeakPtr<PepperVideoSourceHost> host_; 53 base::WeakPtr<PepperVideoSourceHost> host_;
54 // |thread_checker_| is bound to the main render thread. 54 // |thread_checker_| is bound to the main render thread.
55 base::ThreadChecker thread_checker_; 55 base::ThreadChecker thread_checker_;
56 }; 56 };
57 57
(...skipping 23 matching lines...) Expand all
81 bool get_frame_pending_; 81 bool get_frame_pending_;
82 82
83 base::WeakPtrFactory<PepperVideoSourceHost> weak_factory_; 83 base::WeakPtrFactory<PepperVideoSourceHost> weak_factory_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(PepperVideoSourceHost); 85 DISALLOW_COPY_AND_ASSIGN(PepperVideoSourceHost);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace content
89 89
90 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_SOURCE_HOST_H_ 90 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_SOURCE_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_destination_host.h ('k') | content/renderer/pepper/pepper_webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698