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

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

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NON_EXPORTED_BASE Created 7 years, 8 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_ref_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_system_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "googleurl/src/gurl.h"
11 #include "ppapi/c/pp_file_info.h"
12 #include "ppapi/c/ppb_file_system.h"
13 #include "ppapi/shared_impl/resource.h"
14 #include "ppapi/thunk/ppb_file_system_api.h"
15
16 namespace webkit {
17 namespace ppapi {
18
19 class PPB_FileSystem_Impl : public ::ppapi::Resource,
20 public ::ppapi::thunk::PPB_FileSystem_API {
21 public:
22 virtual ~PPB_FileSystem_Impl();
23
24 static PP_Resource Create(PP_Instance instance, PP_FileSystemType type);
25
26 // Resource overrides.
27 virtual ::ppapi::thunk::PPB_FileSystem_API* AsPPB_FileSystem_API() OVERRIDE;
28
29 PP_FileSystemType type() const { return type_; }
30 const GURL& root_url() const { return root_url_; }
31 void set_root_url(const GURL& root_url) { root_url_ = root_url; }
32 bool opened() const { return opened_; }
33 void set_opened(bool opened) { opened_ = opened; }
34
35 // PPB_FileSystem_API implementation.
36 virtual int32_t Open(
37 int64_t expected_size,
38 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
39 virtual PP_FileSystemType GetType() OVERRIDE;
40
41 private:
42 PPB_FileSystem_Impl(PP_Instance instance, PP_FileSystemType type);
43
44 PP_FileSystemType type_;
45 GURL root_url_;
46 bool opened_;
47 bool called_open_;
48
49 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl);
50 };
51
52 } // namespace ppapi
53 } // namespace webkit
54
55 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_ref_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698