OLD | NEW |
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 |
(...skipping 24 matching lines...) Expand all Loading... |
35 static const Info* GetTrustedInfo(); | 35 static const Info* GetTrustedInfo(); |
36 | 36 |
37 static PP_Resource CreateProxyResource( | 37 static PP_Resource CreateProxyResource( |
38 PP_Instance instance, | 38 PP_Instance instance, |
39 PP_FileChooserMode_Dev mode, | 39 PP_FileChooserMode_Dev mode, |
40 const char* accept_mime_types); | 40 const char* accept_mime_types); |
41 | 41 |
42 // InterfaceProxy implementation. | 42 // InterfaceProxy implementation. |
43 virtual bool OnMessageReceived(const IPC::Message& msg); | 43 virtual bool OnMessageReceived(const IPC::Message& msg); |
44 | 44 |
45 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_FILE_CHOOSER; | 45 static const ApiID kApiID = API_ID_PPB_FILE_CHOOSER; |
46 | 46 |
47 private: | 47 private: |
48 // Plugin -> host message handlers. | 48 // Plugin -> host message handlers. |
49 void OnMsgCreate(PP_Instance instance, | 49 void OnMsgCreate(PP_Instance instance, |
50 int mode, | 50 int mode, |
51 std::string accept_mime_types, | 51 std::string accept_mime_types, |
52 ppapi::HostResource* result); | 52 ppapi::HostResource* result); |
53 void OnMsgShow(const ppapi::HostResource& chooser, | 53 void OnMsgShow(const ppapi::HostResource& chooser, |
54 bool save_as, | 54 bool save_as, |
55 std::string suggested_file_name, | 55 std::string suggested_file_name, |
(...skipping 12 matching lines...) Expand all Loading... |
68 pp::CompletionCallbackFactory<PPB_FileChooser_Proxy, | 68 pp::CompletionCallbackFactory<PPB_FileChooser_Proxy, |
69 ProxyNonThreadSafeRefCount> callback_factory_; | 69 ProxyNonThreadSafeRefCount> callback_factory_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy); | 71 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace proxy | 74 } // namespace proxy |
75 } // namespace ppapi | 75 } // namespace ppapi |
76 | 76 |
77 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ | 77 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ |
OLD | NEW |