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

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

Issue 8333004: Rename InterfaceID to ApiID and move the file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years, 2 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
« no previous file with comments | « ppapi/proxy/ppb_cursor_control_proxy.cc ('k') | ppapi/proxy/ppb_file_chooser_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 24 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_cursor_control_proxy.cc ('k') | ppapi/proxy/ppb_file_chooser_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698