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

Side by Side Diff: ppapi/proxy/ppb_file_system_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_SYSTEM_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_
6 #define PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FILE_SYSTEM_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_instance.h" 11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_time.h" 13 #include "ppapi/c/pp_time.h"
14 #include "ppapi/c/ppb_file_system.h" 14 #include "ppapi/c/ppb_file_system.h"
15 #include "ppapi/proxy/interface_proxy.h" 15 #include "ppapi/proxy/interface_proxy.h"
16 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 16 #include "ppapi/proxy/proxy_completion_callback_factory.h"
17 #include "ppapi/utility/completion_callback_factory.h" 17 #include "ppapi/utility/completion_callback_factory.h"
18 18
19 namespace ppapi { 19 namespace ppapi {
20 20
21 class HostResource; 21 class HostResource;
22 22
23 namespace proxy { 23 namespace proxy {
24 24
25 class PPB_FileSystem_Proxy : public InterfaceProxy { 25 class PPB_FileSystem_Proxy : public InterfaceProxy {
26 public: 26 public:
(...skipping 17 matching lines...) Expand all
44 ppapi::HostResource* result); 44 ppapi::HostResource* result);
45 void OnMsgOpen(const ppapi::HostResource& filesystem, 45 void OnMsgOpen(const ppapi::HostResource& filesystem,
46 int64_t expected_size); 46 int64_t expected_size);
47 47
48 void OnMsgOpenComplete(const ppapi::HostResource& filesystem, 48 void OnMsgOpenComplete(const ppapi::HostResource& filesystem,
49 int32_t result); 49 int32_t result);
50 50
51 void OpenCompleteInHost(int32_t result, 51 void OpenCompleteInHost(int32_t result,
52 const ppapi::HostResource& host_resource); 52 const ppapi::HostResource& host_resource);
53 53
54 pp::CompletionCallbackFactory<PPB_FileSystem_Proxy, 54 ProxyCompletionCallbackFactory<PPB_FileSystem_Proxy> callback_factory_;
55 ProxyNonThreadSafeRefCount> callback_factory_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Proxy); 56 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Proxy);
58 }; 57 };
59 58
60 } // namespace proxy 59 } // namespace proxy
61 } // namespace ppapi 60 } // namespace ppapi
62 61
63 #endif // PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_ 62 #endif // PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698