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

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

Issue 12817009: Add Query() support to FileRef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits, more callback ref shuffling. Created 7 years, 8 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
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 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/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "ppapi/c/pp_file_info.h"
12 #include "ppapi/c/ppb_file_ref.h" 13 #include "ppapi/c/ppb_file_ref.h"
13 #include "ppapi/shared_impl/ppb_file_ref_shared.h" 14 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
14 #include "ppapi/shared_impl/var.h" 15 #include "ppapi/shared_impl/var.h"
15 #include "webkit/glue/webkit_glue_export.h" 16 #include "webkit/glue/webkit_glue_export.h"
16 17
17 namespace webkit { 18 namespace webkit {
18 namespace ppapi { 19 namespace ppapi {
19 20
20 using ::ppapi::StringVar; 21 using ::ppapi::StringVar;
21 22
(...skipping 24 matching lines...) Expand all
46 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 47 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
47 virtual int32_t Touch( 48 virtual int32_t Touch(
48 PP_Time last_access_time, 49 PP_Time last_access_time,
49 PP_Time last_modified_time, 50 PP_Time last_modified_time,
50 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 51 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
51 virtual int32_t Delete( 52 virtual int32_t Delete(
52 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 53 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
53 virtual int32_t Rename( 54 virtual int32_t Rename(
54 PP_Resource new_file_ref, 55 PP_Resource new_file_ref,
55 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 56 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
57 virtual int32_t Query(
58 PP_FileInfo* info,
59 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
56 virtual PP_Var GetAbsolutePath(); 60 virtual PP_Var GetAbsolutePath();
57 61
58 PPB_FileSystem_Impl* file_system() const { return file_system_.get(); } 62 PPB_FileSystem_Impl* file_system() const { return file_system_.get(); }
59 63
60 // Returns the system path corresponding to this file. Valid only for 64 // Returns the system path corresponding to this file. Valid only for
61 // external filesystems. 65 // external filesystems.
62 base::FilePath GetSystemPath() const; 66 base::FilePath GetSystemPath() const;
63 67
64 // Returns the FileSystem API URL corresponding to this file. 68 // Returns the FileSystem API URL corresponding to this file.
65 GURL GetFileSystemURL() const; 69 GURL GetFileSystemURL() const;
(...skipping 16 matching lines...) Expand all
82 // return the identical string object every time it is requested. 86 // return the identical string object every time it is requested.
83 scoped_refptr<StringVar> external_path_var_; 87 scoped_refptr<StringVar> external_path_var_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); 89 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl);
86 }; 90 };
87 91
88 } // namespace ppapi 92 } // namespace ppapi
89 } // namespace webkit 93 } // namespace webkit
90 94
91 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 95 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698