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

Side by Side Diff: ppapi/shared_impl/file_ref_impl.h

Issue 7687005: Create ppapi_proxy.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 | « ppapi/shared_impl/crypto_impl.h ('k') | ppapi/shared_impl/font_impl.h » ('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 PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_
6 #define PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 11 matching lines...) Expand all
22 22
23 ppapi::HostResource resource; 23 ppapi::HostResource resource;
24 int file_system_type; // One of PP_FileSystemType values. 24 int file_system_type; // One of PP_FileSystemType values.
25 std::string path; 25 std::string path;
26 std::string name; 26 std::string name;
27 }; 27 };
28 28
29 // This class provides the shared implementation of a FileRef. The functions 29 // This class provides the shared implementation of a FileRef. The functions
30 // that actually "do stuff" like Touch and MakeDirectory are implemented 30 // that actually "do stuff" like Touch and MakeDirectory are implemented
31 // differently for the proxied and non-proxied derived classes. 31 // differently for the proxied and non-proxied derived classes.
32 class FileRefImpl : public Resource, public thunk::PPB_FileRef_API { 32 class PPAPI_SHARED_EXPORT FileRefImpl : public Resource,
33 public thunk::PPB_FileRef_API {
33 public: 34 public:
34 struct InitAsImpl {}; 35 struct InitAsImpl {};
35 struct InitAsProxy {}; 36 struct InitAsProxy {};
36 37
37 FileRefImpl(const InitAsImpl&, const PPB_FileRef_CreateInfo& info); 38 FileRefImpl(const InitAsImpl&, const PPB_FileRef_CreateInfo& info);
38 FileRefImpl(const InitAsProxy&, const PPB_FileRef_CreateInfo& info); 39 FileRefImpl(const InitAsProxy&, const PPB_FileRef_CreateInfo& info);
39 virtual ~FileRefImpl(); 40 virtual ~FileRefImpl();
40 41
41 // Resource overrides. 42 // Resource overrides.
42 virtual thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE; 43 virtual thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE;
(...skipping 11 matching lines...) Expand all
54 // return the identical string object every time they're requested. 55 // return the identical string object every time they're requested.
55 mutable scoped_refptr<StringVar> name_var_; 56 mutable scoped_refptr<StringVar> name_var_;
56 mutable scoped_refptr<StringVar> path_var_; 57 mutable scoped_refptr<StringVar> path_var_;
57 58
58 DISALLOW_IMPLICIT_CONSTRUCTORS(FileRefImpl); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(FileRefImpl);
59 }; 60 };
60 61
61 } // namespace ppapi 62 } // namespace ppapi
62 63
63 #endif // PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_ 64 #endif // PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/crypto_impl.h ('k') | ppapi/shared_impl/font_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698