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

Side by Side Diff: webkit/plugins/ppapi/ppb_file_ref_impl.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 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) 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 WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 18 matching lines...) Expand all
29 const std::string& validated_path); 29 const std::string& validated_path);
30 PPB_FileRef_Impl(PluginInstance* instance, 30 PPB_FileRef_Impl(PluginInstance* instance,
31 const FilePath& external_file_path); 31 const FilePath& external_file_path);
32 virtual ~PPB_FileRef_Impl(); 32 virtual ~PPB_FileRef_Impl();
33 33
34 static PP_Resource Create(PP_Resource file_system, const char* path); 34 static PP_Resource Create(PP_Resource file_system, const char* path);
35 35
36 // Resource overrides. 36 // Resource overrides.
37 virtual PPB_FileRef_Impl* AsPPB_FileRef_Impl(); 37 virtual PPB_FileRef_Impl* AsPPB_FileRef_Impl();
38 38
39 // ResourceObjectBase overrides. 39 // Resource overrides.
40 virtual ::ppapi::thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE; 40 virtual ::ppapi::thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE;
41 41
42 // PPB_FileRef_API implementation. 42 // PPB_FileRef_API implementation.
43 virtual PP_FileSystemType GetFileSystemType() const OVERRIDE; 43 virtual PP_FileSystemType GetFileSystemType() const OVERRIDE;
44 virtual PP_Var GetName() const OVERRIDE; 44 virtual PP_Var GetName() const OVERRIDE;
45 virtual PP_Var GetPath() const OVERRIDE; 45 virtual PP_Var GetPath() const OVERRIDE;
46 virtual PP_Resource GetParent() OVERRIDE; 46 virtual PP_Resource GetParent() OVERRIDE;
47 virtual int32_t MakeDirectory(PP_Bool make_ancestors, 47 virtual int32_t MakeDirectory(PP_Bool make_ancestors,
48 PP_CompletionCallback callback) OVERRIDE; 48 PP_CompletionCallback callback) OVERRIDE;
49 virtual int32_t Touch(PP_Time last_access_time, 49 virtual int32_t Touch(PP_Time last_access_time,
(...skipping 24 matching lines...) Expand all
74 std::string virtual_path_; // UTF-8 encoded 74 std::string virtual_path_; // UTF-8 encoded
75 FilePath system_path_; 75 FilePath system_path_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); 77 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl);
78 }; 78 };
79 79
80 } // namespace ppapi 80 } // namespace ppapi
81 } // namespace webkit 81 } // namespace webkit
82 82
83 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 83 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698