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

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

Issue 670683003: Standardize usage of virtual/override/final 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) 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_AUDIO_INPUT_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
14 #include "base/sync_socket.h" 14 #include "base/sync_socket.h"
15 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" 15 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h"
16 #include "ipc/ipc_platform_file.h" 16 #include "ipc/ipc_platform_file.h"
17 #include "ppapi/c/ppb_audio_config.h" 17 #include "ppapi/c/ppb_audio_config.h"
18 #include "ppapi/host/host_message_context.h" 18 #include "ppapi/host/host_message_context.h"
19 #include "ppapi/host/resource_host.h" 19 #include "ppapi/host/resource_host.h"
20 20
21 namespace content { 21 namespace content {
22 class PepperPlatformAudioInput; 22 class PepperPlatformAudioInput;
23 class RendererPpapiHostImpl; 23 class RendererPpapiHostImpl;
24 24
25 class PepperAudioInputHost : public ppapi::host::ResourceHost { 25 class PepperAudioInputHost : public ppapi::host::ResourceHost {
26 public: 26 public:
27 PepperAudioInputHost(RendererPpapiHostImpl* host, 27 PepperAudioInputHost(RendererPpapiHostImpl* host,
28 PP_Instance instance, 28 PP_Instance instance,
29 PP_Resource resource); 29 PP_Resource resource);
30 virtual ~PepperAudioInputHost(); 30 ~PepperAudioInputHost() override;
31 31
32 virtual int32_t OnResourceMessageReceived( 32 int32_t OnResourceMessageReceived(
33 const IPC::Message& msg, 33 const IPC::Message& msg,
34 ppapi::host::HostMessageContext* context) override; 34 ppapi::host::HostMessageContext* context) override;
35 35
36 // Called when the stream is created. 36 // Called when the stream is created.
37 void StreamCreated(base::SharedMemoryHandle shared_memory_handle, 37 void StreamCreated(base::SharedMemoryHandle shared_memory_handle,
38 size_t shared_memory_size, 38 size_t shared_memory_size,
39 base::SyncSocket::Handle socket); 39 base::SyncSocket::Handle socket);
40 void StreamCreationFailed(); 40 void StreamCreationFailed();
41 41
42 private: 42 private:
(...skipping 29 matching lines...) Expand all
72 PepperPlatformAudioInput* audio_input_; 72 PepperPlatformAudioInput* audio_input_;
73 73
74 PepperDeviceEnumerationHostHelper enumeration_helper_; 74 PepperDeviceEnumerationHostHelper enumeration_helper_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost); 76 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost);
77 }; 77 };
78 78
79 } // namespace content 79 } // namespace content
80 80
81 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ 81 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/mock_resource.h ('k') | content/renderer/pepper/pepper_browser_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698