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

Side by Side Diff: ppapi/proxy/ppb_audio_proxy.h

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PPAPI_PROXY_PPB_AUDIO_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_AUDIO_PROXY_H_
6 #define PPAPI_PROXY_PPB_AUDIO_PROXY_H_ 6 #define PPAPI_PROXY_PPB_AUDIO_PROXY_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/sync_socket.h" 12 #include "base/sync_socket.h"
13 #include "ipc/ipc_platform_file.h" 13 #include "ipc/ipc_platform_file.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_module.h" 15 #include "ppapi/c/pp_module.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/ppb_audio.h" 17 #include "ppapi/c/ppb_audio.h"
18 #include "ppapi/c/ppb_audio_config.h" 18 #include "ppapi/c/ppb_audio_config.h"
19 #include "ppapi/cpp/completion_callback.h" 19 #include "ppapi/cpp/completion_callback.h"
20 #include "ppapi/proxy/interface_proxy.h" 20 #include "ppapi/proxy/interface_proxy.h"
21 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 21 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
22 22
23 struct PPB_Audio; 23 struct PPB_Audio;
24 24
25 namespace ppapi { 25 namespace ppapi {
26
26 class HostResource; 27 class HostResource;
27 }
28 28
29 namespace pp {
30 namespace proxy { 29 namespace proxy {
31 30
32 class PPB_Audio_Proxy : public InterfaceProxy { 31 class PPB_Audio_Proxy : public InterfaceProxy {
33 public: 32 public:
34 PPB_Audio_Proxy(Dispatcher* dispatcher, const void* target_interface); 33 PPB_Audio_Proxy(Dispatcher* dispatcher, const void* target_interface);
35 virtual ~PPB_Audio_Proxy(); 34 virtual ~PPB_Audio_Proxy();
36 35
37 static const Info* GetInfo(); 36 static const Info* GetInfo();
38 37
39 // Creates an Audio object in the plugin process. 38 // Creates an Audio object in the plugin process.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // The input arguments should be initialized to 0 or -1, depending on the 74 // The input arguments should be initialized to 0 or -1, depending on the
76 // platform's default invalid handle values. On error, some of these 75 // platform's default invalid handle values. On error, some of these
77 // arguments may be written to, and others may be untouched, depending on 76 // arguments may be written to, and others may be untouched, depending on
78 // where the error occurred. 77 // where the error occurred.
79 int32_t GetAudioConnectedHandles( 78 int32_t GetAudioConnectedHandles(
80 const ppapi::HostResource& resource, 79 const ppapi::HostResource& resource,
81 IPC::PlatformFileForTransit* foreign_socket_handle, 80 IPC::PlatformFileForTransit* foreign_socket_handle,
82 base::SharedMemoryHandle* foreign_shared_memory_handle, 81 base::SharedMemoryHandle* foreign_shared_memory_handle,
83 uint32_t* shared_memory_length); 82 uint32_t* shared_memory_length);
84 83
85 CompletionCallbackFactory<PPB_Audio_Proxy, 84 pp::CompletionCallbackFactory<PPB_Audio_Proxy,
86 ProxyNonThreadSafeRefCount> callback_factory_; 85 ProxyNonThreadSafeRefCount> callback_factory_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Proxy); 87 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Proxy);
89 }; 88 };
90 89
91 } // namespace proxy 90 } // namespace proxy
92 } // namespace pp 91 } // namespace ppapi
93 92
94 #endif // PPAPI_PROXY_PPB_AUDIO_PROXY_H_ 93 #endif // PPAPI_PROXY_PPB_AUDIO_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698