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

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

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_io_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "ppapi/c/ppb_file_ref.h" 12 #include "ppapi/c/ppb_file_ref.h"
13 #include "ppapi/shared_impl/resource.h"
13 #include "ppapi/thunk/ppb_file_ref_api.h" 14 #include "ppapi/thunk/ppb_file_ref_api.h"
14 #include "webkit/plugins/ppapi/resource.h"
15 15
16 namespace webkit { 16 namespace webkit {
17 namespace ppapi { 17 namespace ppapi {
18 18
19 class PPB_FileSystem_Impl; 19 class PPB_FileSystem_Impl;
20 class PluginInstance; 20 class PluginDelegate;
21 class PluginModule; 21 class PluginModule;
22 22
23 class PPB_FileRef_Impl : public Resource, 23 class PPB_FileRef_Impl : public ::ppapi::Resource,
24 public ::ppapi::thunk::PPB_FileRef_API { 24 public ::ppapi::thunk::PPB_FileRef_API {
25 public: 25 public:
26 PPB_FileRef_Impl(); 26 PPB_FileRef_Impl();
27 PPB_FileRef_Impl(PluginInstance* instance, 27 PPB_FileRef_Impl(PP_Instance instance,
28 scoped_refptr<PPB_FileSystem_Impl> file_system, 28 scoped_refptr<PPB_FileSystem_Impl> file_system,
29 const std::string& validated_path); 29 const std::string& validated_path);
30 PPB_FileRef_Impl(PluginInstance* instance, 30 PPB_FileRef_Impl(PP_Instance 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 // Resource 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;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_io_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698