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

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

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated TestURLLoader to test blocking callbacks. Created 8 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 | 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_SYSTEM_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 16 matching lines...) Expand all
27 virtual ::ppapi::thunk::PPB_FileSystem_API* AsPPB_FileSystem_API() OVERRIDE; 27 virtual ::ppapi::thunk::PPB_FileSystem_API* AsPPB_FileSystem_API() OVERRIDE;
28 28
29 PP_FileSystemType type() const { return type_; } 29 PP_FileSystemType type() const { return type_; }
30 const GURL& root_url() const { return root_url_; } 30 const GURL& root_url() const { return root_url_; }
31 void set_root_url(const GURL& root_url) { root_url_ = root_url; } 31 void set_root_url(const GURL& root_url) { root_url_ = root_url; }
32 bool opened() const { return opened_; } 32 bool opened() const { return opened_; }
33 void set_opened(bool opened) { opened_ = opened; } 33 void set_opened(bool opened) { opened_ = opened; }
34 34
35 // PPB_FileSystem_API implementation. 35 // PPB_FileSystem_API implementation.
36 virtual int32_t Open(int64_t expected_size, 36 virtual int32_t Open(int64_t expected_size,
37 PP_CompletionCallback callback) OVERRIDE; 37 ::ppapi::ApiCallbackType callback) OVERRIDE;
38 virtual PP_FileSystemType GetType() OVERRIDE; 38 virtual PP_FileSystemType GetType() OVERRIDE;
39 39
40 private: 40 private:
41 PPB_FileSystem_Impl(PP_Instance instance, PP_FileSystemType type); 41 PPB_FileSystem_Impl(PP_Instance instance, PP_FileSystemType type);
42 42
43 PP_FileSystemType type_; 43 PP_FileSystemType type_;
44 GURL root_url_; 44 GURL root_url_;
45 bool opened_; 45 bool opened_;
46 bool called_open_; 46 bool called_open_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl); 48 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl);
49 }; 49 };
50 50
51 } // namespace ppapi 51 } // namespace ppapi
52 } // namespace webkit 52 } // namespace webkit
53 53
54 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ 54 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698