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

Side by Side Diff: ppapi/proxy/ppb_file_chooser_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_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/cpp/completion_callback.h" 13 #include "ppapi/cpp/completion_callback.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
16 #include "ppapi/thunk/ppb_file_chooser_api.h" 16 #include "ppapi/thunk/ppb_file_chooser_api.h"
17 17
18 struct PPB_FileChooser_Dev; 18 struct PPB_FileChooser_Dev;
19 19
20 namespace ppapi { 20 namespace ppapi {
21
21 class HostResource; 22 class HostResource;
22 }
23 23
24 namespace pp {
25 namespace proxy { 24 namespace proxy {
26 25
27 struct PPBFileRef_CreateInfo; 26 struct PPBFileRef_CreateInfo;
28 27
29 class PPB_FileChooser_Proxy : public InterfaceProxy { 28 class PPB_FileChooser_Proxy : public InterfaceProxy {
30 public: 29 public:
31 PPB_FileChooser_Proxy(Dispatcher* dispatcher, const void* target_interface); 30 PPB_FileChooser_Proxy(Dispatcher* dispatcher, const void* target_interface);
32 virtual ~PPB_FileChooser_Proxy(); 31 virtual ~PPB_FileChooser_Proxy();
33 32
34 static const Info* GetInfo(); 33 static const Info* GetInfo();
(...skipping 20 matching lines...) Expand all
55 // Host -> plugin message handlers. 54 // Host -> plugin message handlers.
56 void OnMsgChooseComplete( 55 void OnMsgChooseComplete(
57 const ppapi::HostResource& chooser, 56 const ppapi::HostResource& chooser,
58 int32_t result_code, 57 int32_t result_code,
59 const std::vector<PPBFileRef_CreateInfo>& chosen_files); 58 const std::vector<PPBFileRef_CreateInfo>& chosen_files);
60 59
61 // 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
62 // via IPC and OnMsgChooseComplete will be called there. 61 // via IPC and OnMsgChooseComplete will be called there.
63 void OnShowCallback(int32_t result, const ppapi::HostResource& chooser); 62 void OnShowCallback(int32_t result, const ppapi::HostResource& chooser);
64 63
65 CompletionCallbackFactory<PPB_FileChooser_Proxy, 64 pp::CompletionCallbackFactory<PPB_FileChooser_Proxy,
66 ProxyNonThreadSafeRefCount> callback_factory_; 65 ProxyNonThreadSafeRefCount> callback_factory_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy); 67 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy);
69 }; 68 };
70 69
71 } // namespace proxy 70 } // namespace proxy
72 } // namespace pp 71 } // namespace ppapi
73 72
74 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ 73 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698