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

Side by Side Diff: webkit/glue/plugins/pepper_file_system.h

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/glue/plugins/pepper_file_ref.cc ('k') | webkit/glue/plugins/pepper_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FILE_SYSTEM_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_SYSTEM_H_
7
8 #include "base/basictypes.h"
9 #include "base/file_path.h"
10 #include "ppapi/c/dev/pp_file_info_dev.h"
11 #include "webkit/glue/plugins/pepper_resource.h"
12
13 struct PPB_FileSystem_Dev;
14
15 namespace pepper {
16
17 class PluginInstance;
18
19 class FileSystem : public Resource {
20 public:
21 // Returns a pointer to the interface implementing PPB_FileSystem that is
22 // exposed to the plugin.
23 static const PPB_FileSystem_Dev* GetInterface();
24
25 FileSystem(PluginInstance* instance, PP_FileSystemType_Dev type);
26 virtual FileSystem* AsFileSystem();
27
28 PluginInstance* instance() { return instance_; }
29 PP_FileSystemType_Dev type() { return type_; }
30 const FilePath& root_path() const { return root_path_; }
31 void set_root_path(const FilePath& root_path) { root_path_ = root_path; }
32 bool opened() const { return opened_; }
33 void set_opened(bool opened) { opened_ = opened; }
34
35 private:
36 PluginInstance* instance_;
37 PP_FileSystemType_Dev type_;
38 FilePath root_path_;
39 bool opened_;
40 };
41
42 } // namespace pepper
43
44 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_file_ref.cc ('k') | webkit/glue/plugins/pepper_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698