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

Side by Side Diff: content/renderer/pepper/ppb_file_ref_impl.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_FILE_REF_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_FILE_REF_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "ppapi/c/pp_file_info.h" 13 #include "ppapi/c/pp_file_info.h"
14 #include "ppapi/c/ppb_file_ref.h" 14 #include "ppapi/c/ppb_file_ref.h"
15 #include "ppapi/shared_impl/ppb_file_ref_shared.h" 15 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
16 #include "ppapi/shared_impl/scoped_pp_resource.h" 16 #include "ppapi/shared_impl/scoped_pp_resource.h"
17 #include "ppapi/shared_impl/var.h" 17 #include "ppapi/shared_impl/var.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 #include "webkit/plugins/webkit_plugins_export.h"
20 19
21 namespace webkit { 20 namespace webkit {
22 namespace ppapi { 21 namespace ppapi {
23 22
24 using ::ppapi::StringVar; 23 using ::ppapi::StringVar;
25 24
26 class PPB_FileSystem_Impl; 25 class PPB_FileSystem_Impl;
27 26
28 class WEBKIT_PLUGINS_EXPORT PPB_FileRef_Impl 27 class PPB_FileRef_Impl : public ::ppapi::PPB_FileRef_Shared {
29 : public ::ppapi::PPB_FileRef_Shared {
30 public: 28 public:
31 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info, 29 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info,
32 PP_Resource file_system); 30 PP_Resource file_system);
33 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info, 31 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info,
34 const base::FilePath& external_file_path); 32 const base::FilePath& external_file_path);
35 virtual ~PPB_FileRef_Impl(); 33 virtual ~PPB_FileRef_Impl();
36 34
37 // The returned object will have a refcount of 0 (just like "new"). 35 // The returned object will have a refcount of 0 (just like "new").
38 static PPB_FileRef_Impl* CreateInternal(PP_Instance instance, 36 static PPB_FileRef_Impl* CreateInternal(PP_Instance instance,
39 PP_Resource pp_file_system, 37 PP_Resource pp_file_system,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Lazily initialized var created from the external path. This is so we can 115 // Lazily initialized var created from the external path. This is so we can
118 // return the identical string object every time it is requested. 116 // return the identical string object every time it is requested.
119 scoped_refptr<StringVar> external_path_var_; 117 scoped_refptr<StringVar> external_path_var_;
120 118
121 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); 119 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl);
122 }; 120 };
123 121
124 } // namespace ppapi 122 } // namespace ppapi
125 } // namespace webkit 123 } // namespace webkit
126 124
127 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 125 #endif // CONTENT_RENDERER_PEPPER_PPB_FILE_REF_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698