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

Side by Side Diff: ppapi/proxy/ppb_file_chooser_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) 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 PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
6 #define PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/proxy/interface_proxy.h" 13 #include "ppapi/proxy/interface_proxy.h"
14 #include "ppapi/proxy/proxy_array_output.h" 14 #include "ppapi/proxy/proxy_array_output.h"
15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 15 #include "ppapi/proxy/proxy_completion_callback_factory.h"
16 #include "ppapi/proxy/serialized_var.h" 16 #include "ppapi/proxy/serialized_var.h"
17 #include "ppapi/thunk/ppb_file_chooser_api.h" 17 #include "ppapi/thunk/ppb_file_chooser_api.h"
18 #include "ppapi/cpp/output_traits.h" 18 #include "ppapi/cpp/output_traits.h"
19 #include "ppapi/utility/completion_callback_factory.h" 19 #include "ppapi/utility/completion_callback_factory.h"
20 20
21 namespace ppapi { 21 namespace ppapi {
22 22
23 class HostResource; 23 class HostResource;
24 struct PPB_FileRef_CreateInfo; 24 struct PPB_FileRef_CreateInfo;
25 25
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 int32_t result_code, 57 int32_t result_code,
58 const std::vector<PPB_FileRef_CreateInfo>& chosen_files); 58 const std::vector<PPB_FileRef_CreateInfo>& chosen_files);
59 59
60 // Called when the show is complete in the host. This will notify the plugin 60 // Called when the show is complete in the host. This will notify the plugin
61 // via IPC and OnMsgChooseComplete will be called there. 61 // via IPC and OnMsgChooseComplete will be called there.
62 void OnShowCallback( 62 void OnShowCallback(
63 int32_t result, 63 int32_t result,
64 scoped_refptr<RefCountedArrayOutputAdapter<PP_Resource> > output, 64 scoped_refptr<RefCountedArrayOutputAdapter<PP_Resource> > output,
65 HostResource chooser); 65 HostResource chooser);
66 66
67 pp::CompletionCallbackFactory<PPB_FileChooser_Proxy, 67 ProxyCompletionCallbackFactory<PPB_FileChooser_Proxy> callback_factory_;
68 ProxyNonThreadSafeRefCount> callback_factory_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy); 69 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy);
71 }; 70 };
72 71
73 } // namespace proxy 72 } // namespace proxy
74 } // namespace ppapi 73 } // namespace ppapi
75 74
76 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ 75 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698