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

Side by Side Diff: trunk/src/ppapi/shared_impl/file_ref_create_info.h

Issue 23462016: Revert 219911 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHARED_IMPL_FILE_REF_CREATE_INFO_H 5 #ifndef PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H
6 #define PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H 6 #define PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_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 "ppapi/c/pp_file_info.h" 11 #include "ppapi/c/pp_file_info.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/shared_impl/ppapi_shared_export.h"
14 13
15 namespace ppapi { 14 namespace ppapi {
16 15
17 // FileRefs are created in a number of places and they include a number of 16 // FileRefs are created in a number of places and they include a number of
18 // return values. This struct encapsulates everything in one place. 17 // return values. This struct encapsulates everything in one place.
19 struct FileRefCreateInfo { 18 struct FileRef_CreateInfo {
20 FileRefCreateInfo() : file_system_type(PP_FILESYSTEMTYPE_INVALID),
21 pending_host_resource_id(0),
22 file_system_plugin_resource(0) { }
23
24 PPAPI_SHARED_EXPORT bool IsValid() const;
25
26 PP_FileSystemType file_system_type; 19 PP_FileSystemType file_system_type;
27 std::string internal_path; 20 std::string internal_path;
28 std::string display_name; 21 std::string display_name;
29 22
30 // Used when a FileRef is created in the Renderer. 23 // Used when a FileRef is created in the Renderer.
31 int pending_host_resource_id; 24 int pending_host_resource_id;
32 25
33 // Since FileRef needs to hold a FileSystem reference, we need to pass the 26 // Since FileRef needs to hold a FileSystem reference, we need to pass the
34 // resource in this CreateInfo. This struct doesn't hold any refrence on the 27 // resource in this CreateInfo.
35 // file_system_plugin_resource.
36 PP_Resource file_system_plugin_resource; 28 PP_Resource file_system_plugin_resource;
37 }; 29 };
38 30
39 // Used in the renderer when sending a FileRefCreateInfo to a plugin for a
40 // FileRef on an external filesystem.
41 PPAPI_SHARED_EXPORT FileRefCreateInfo
42 MakeExternalFileRefCreateInfo(const base::FilePath& external_path,
43 const std::string& display_name,
44 int pending_host_resource_id);
45
46 } // namespace ppapi 31 } // namespace ppapi
47 32
48 #endif // PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H 33 #endif // PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H
OLDNEW
« no previous file with comments | « trunk/src/ppapi/proxy/url_response_info_resource.cc ('k') | trunk/src/ppapi/shared_impl/file_ref_create_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698