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

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

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove code duplication Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RESOURCE_CREATION_PROXY_H_ 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 explicit ResourceCreationProxy(Dispatcher* dispatcher); 32 explicit ResourceCreationProxy(Dispatcher* dispatcher);
33 virtual ~ResourceCreationProxy(); 33 virtual ~ResourceCreationProxy();
34 34
35 // Factory function used for registration (normal code can just use the 35 // Factory function used for registration (normal code can just use the
36 // constructor). 36 // constructor).
37 static InterfaceProxy* Create(Dispatcher* dispatcher); 37 static InterfaceProxy* Create(Dispatcher* dispatcher);
38 38
39 // ResourceCreationAPI (called in plugin). 39 // ResourceCreationAPI (called in plugin).
40 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; 40 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE;
41 virtual PP_Resource CreateFileRef(PP_Instance instance,
42 PP_Resource file_system,
43 const char* path) OVERRIDE;
44 virtual PP_Resource CreateFileRef( 41 virtual PP_Resource CreateFileRef(
45 const PPB_FileRef_CreateInfo& create_info) OVERRIDE; 42 PP_Instance instance,
43 const FileRef_CreateInfo& create_info) OVERRIDE;
46 virtual PP_Resource CreateFileSystem(PP_Instance instance, 44 virtual PP_Resource CreateFileSystem(PP_Instance instance,
47 PP_FileSystemType type) OVERRIDE; 45 PP_FileSystemType type) OVERRIDE;
48 virtual PP_Resource CreateIsolatedFileSystem( 46 virtual PP_Resource CreateIsolatedFileSystem(
49 PP_Instance instance, 47 PP_Instance instance,
50 const char* fsid) OVERRIDE; 48 const char* fsid) OVERRIDE;
51 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, 49 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance,
52 PP_InputEvent_Type type, 50 PP_InputEvent_Type type,
53 PP_TimeTicks time_stamp, 51 PP_TimeTicks time_stamp,
54 struct PP_Var text, 52 struct PP_Var text,
55 uint32_t segment_number, 53 uint32_t segment_number,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 180
183 private: 181 private:
184 Connection GetConnection(); 182 Connection GetConnection();
185 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); 183 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy);
186 }; 184 };
187 185
188 } // namespace proxy 186 } // namespace proxy
189 } // namespace ppapi 187 } // namespace ppapi
190 188
191 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 189 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698