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

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

Issue 231883002: Refactor some ResourceMessageReply usages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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_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"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 base::SyncSocket::Handle socket_handle); 54 base::SyncSocket::Handle socket_handle);
55 55
56 int32_t GetRemoteHandles( 56 int32_t GetRemoteHandles(
57 const base::SyncSocket& socket, 57 const base::SyncSocket& socket,
58 const base::SharedMemory& shared_memory, 58 const base::SharedMemory& shared_memory,
59 IPC::PlatformFileForTransit* remote_socket_handle, 59 IPC::PlatformFileForTransit* remote_socket_handle,
60 base::SharedMemoryHandle* remote_shared_memory_handle); 60 base::SharedMemoryHandle* remote_shared_memory_handle);
61 61
62 void Close(); 62 void Close();
63 63
64 void SendOpenReply(int32_t result);
65
64 // Non-owning pointer. 66 // Non-owning pointer.
65 RendererPpapiHostImpl* renderer_ppapi_host_; 67 RendererPpapiHostImpl* renderer_ppapi_host_;
66 68
67 scoped_ptr<ppapi::host::ReplyMessageContext> open_context_; 69 ppapi::host::ReplyMessageContext open_context_;
70 bool open_pending_;
68 71
69 // Audio input object that we delegate audio IPC through. 72 // Audio input object that we delegate audio IPC through.
70 // We don't own this pointer but are responsible for calling Shutdown on it. 73 // We don't own this pointer but are responsible for calling Shutdown on it.
71 PepperPlatformAudioInput* audio_input_; 74 PepperPlatformAudioInput* audio_input_;
72 75
73 PepperDeviceEnumerationHostHelper enumeration_helper_; 76 PepperDeviceEnumerationHostHelper enumeration_helper_;
74 77
75 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost); 78 DISALLOW_COPY_AND_ASSIGN(PepperAudioInputHost);
76 }; 79 };
77 80
78 } // namespace content 81 } // namespace content
79 82
80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_ 83 #endif // CONTENT_RENDERER_PEPPER_PEPPER_AUDIO_INPUT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698