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

Side by Side Diff: ppapi/proxy/ppb_file_system_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_file_ref_proxy.cc ('k') | ppapi/proxy/ppb_file_system_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_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"
(...skipping 19 matching lines...) Expand all
30 virtual ~PPB_FileSystem_Proxy(); 30 virtual ~PPB_FileSystem_Proxy();
31 31
32 static const Info* GetInfo(); 32 static const Info* GetInfo();
33 33
34 static PP_Resource CreateProxyResource(PP_Instance instance, 34 static PP_Resource CreateProxyResource(PP_Instance instance,
35 PP_FileSystemType type); 35 PP_FileSystemType type);
36 36
37 // InterfaceProxy implementation. 37 // InterfaceProxy implementation.
38 virtual bool OnMessageReceived(const IPC::Message& msg); 38 virtual bool OnMessageReceived(const IPC::Message& msg);
39 39
40 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_FILE_SYSTEM; 40 static const ApiID kApiID = API_ID_PPB_FILE_SYSTEM;
41 41
42 private: 42 private:
43 // Message handlers. 43 // Message handlers.
44 void OnMsgCreate(PP_Instance instance, 44 void OnMsgCreate(PP_Instance instance,
45 int type, 45 int type,
46 ppapi::HostResource* result); 46 ppapi::HostResource* result);
47 void OnMsgOpen(const ppapi::HostResource& filesystem, 47 void OnMsgOpen(const ppapi::HostResource& filesystem,
48 int64_t expected_size); 48 int64_t expected_size);
49 49
50 void OnMsgOpenComplete(const ppapi::HostResource& filesystem, 50 void OnMsgOpenComplete(const ppapi::HostResource& filesystem,
51 int32_t result); 51 int32_t result);
52 52
53 void OpenCompleteInHost(int32_t result, 53 void OpenCompleteInHost(int32_t result,
54 const ppapi::HostResource& host_resource); 54 const ppapi::HostResource& host_resource);
55 55
56 pp::CompletionCallbackFactory<PPB_FileSystem_Proxy, 56 pp::CompletionCallbackFactory<PPB_FileSystem_Proxy,
57 ProxyNonThreadSafeRefCount> callback_factory_; 57 ProxyNonThreadSafeRefCount> callback_factory_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Proxy); 59 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Proxy);
60 }; 60 };
61 61
62 } // namespace proxy 62 } // namespace proxy
63 } // namespace ppapi 63 } // namespace ppapi
64 64
65 #endif // PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_ 65 #endif // PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppb_file_system_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698