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

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

Issue 10696157: Add support for threadsafe completion callback factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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_FILE_IO_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FILE_IO_PROXY_H_
6 #define PPAPI_PROXY_PPB_FILE_IO_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FILE_IO_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "ppapi/c/pp_file_info.h" 11 #include "ppapi/c/pp_file_info.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 13 #include "ppapi/proxy/proxy_completion_callback_factory.h"
14 #include "ppapi/utility/completion_callback_factory.h" 14 #include "ppapi/utility/completion_callback_factory.h"
15 15
16 namespace ppapi { 16 namespace ppapi {
17 17
18 class HostResource; 18 class HostResource;
19 namespace proxy { 19 namespace proxy {
20 20
21 class PPB_FileIO_Proxy : public InterfaceProxy { 21 class PPB_FileIO_Proxy : public InterfaceProxy {
22 public: 22 public:
23 explicit PPB_FileIO_Proxy(Dispatcher* dispatcher); 23 explicit PPB_FileIO_Proxy(Dispatcher* dispatcher);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void GeneralCallbackCompleteInHost(int32_t pp_error, 75 void GeneralCallbackCompleteInHost(int32_t pp_error,
76 const HostResource& host_resource); 76 const HostResource& host_resource);
77 void OpenFileCallbackCompleteInHost(int32_t pp_error, 77 void OpenFileCallbackCompleteInHost(int32_t pp_error,
78 const HostResource& host_resource); 78 const HostResource& host_resource);
79 void QueryCallbackCompleteInHost(int32_t pp_error, 79 void QueryCallbackCompleteInHost(int32_t pp_error,
80 const HostResource& host_resource, 80 const HostResource& host_resource,
81 PP_FileInfo* info); 81 PP_FileInfo* info);
82 void ReadCallbackCompleteInHost(int32_t pp_error, 82 void ReadCallbackCompleteInHost(int32_t pp_error,
83 const HostResource& host_resource, 83 const HostResource& host_resource,
84 std::string* data); 84 std::string* data);
85 pp::CompletionCallbackFactory<PPB_FileIO_Proxy, 85 ProxyCompletionCallbackFactory<PPB_FileIO_Proxy> callback_factory_;
86 ProxyNonThreadSafeRefCount> callback_factory_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Proxy); 87 DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Proxy);
89 }; 88 };
90 89
91 } // namespace proxy 90 } // namespace proxy
92 } // namespace ppapi 91 } // namespace ppapi
93 92
94 #endif // PPAPI_PROXY_PPB_FILE_IO_PROXY_H_ 93 #endif // PPAPI_PROXY_PPB_FILE_IO_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698