| 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_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" |
| 11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/pp_time.h" | 13 #include "ppapi/c/pp_time.h" |
| 14 #include "ppapi/c/ppb_file_system.h" | 14 #include "ppapi/c/ppb_file_system.h" |
| 15 #include "ppapi/cpp/completion_callback.h" | 15 #include "ppapi/cpp/completion_callback.h" |
| 16 #include "ppapi/proxy/interface_proxy.h" | 16 #include "ppapi/proxy/interface_proxy.h" |
| 17 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 17 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" |
| 18 | 18 |
| 19 struct PPB_FileSystem_Dev; | |
| 20 | |
| 21 namespace ppapi { | 19 namespace ppapi { |
| 22 | 20 |
| 23 class HostResource; | 21 class HostResource; |
| 24 | 22 |
| 25 namespace proxy { | 23 namespace proxy { |
| 26 | 24 |
| 27 class PPB_FileSystem_Proxy : public InterfaceProxy { | 25 class PPB_FileSystem_Proxy : public InterfaceProxy { |
| 28 public: | 26 public: |
| 29 PPB_FileSystem_Proxy(Dispatcher* dispatcher); | 27 explicit PPB_FileSystem_Proxy(Dispatcher* dispatcher); |
| 30 virtual ~PPB_FileSystem_Proxy(); | 28 virtual ~PPB_FileSystem_Proxy(); |
| 31 | 29 |
| 32 static const Info* GetInfo(); | 30 static const Info* GetInfo(); |
| 33 | 31 |
| 34 static PP_Resource CreateProxyResource(PP_Instance instance, | 32 static PP_Resource CreateProxyResource(PP_Instance instance, |
| 35 PP_FileSystemType type); | 33 PP_FileSystemType type); |
| 36 | 34 |
| 37 // InterfaceProxy implementation. | 35 // InterfaceProxy implementation. |
| 38 virtual bool OnMessageReceived(const IPC::Message& msg); | 36 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 39 | 37 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 56 pp::CompletionCallbackFactory<PPB_FileSystem_Proxy, | 54 pp::CompletionCallbackFactory<PPB_FileSystem_Proxy, |
| 57 ProxyNonThreadSafeRefCount> callback_factory_; | 55 ProxyNonThreadSafeRefCount> callback_factory_; |
| 58 | 56 |
| 59 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Proxy); | 57 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Proxy); |
| 60 }; | 58 }; |
| 61 | 59 |
| 62 } // namespace proxy | 60 } // namespace proxy |
| 63 } // namespace ppapi | 61 } // namespace ppapi |
| 64 | 62 |
| 65 #endif // PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_ | 63 #endif // PPAPI_PROXY_PPB_FILE_SYSTEM_PROXY_H_ |
| OLD | NEW |