OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 bool IsOpened() const { return opened_; } | 36 bool IsOpened() const { return opened_; } |
37 GURL GetRootUrl() const { return root_url_; } | 37 GURL GetRootUrl() const { return root_url_; } |
38 | 38 |
39 // It's public only to allow PlatformCallbackAdaptor to access. | 39 // It's public only to allow PlatformCallbackAdaptor to access. |
40 void OpenFileSystemReply(int32_t pp_error, | 40 void OpenFileSystemReply(int32_t pp_error, |
41 const GURL& root); | 41 const GURL& root); |
42 | 42 |
43 private: | 43 private: |
44 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, | 44 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, |
45 int64_t expected_size); | 45 int64_t expected_size); |
| 46 int32_t OnHostMsgInitIsolatedFileSystem( |
| 47 ppapi::host::HostMessageContext* context, |
| 48 const std::string& fsid); |
46 | 49 |
47 RendererPpapiHost* renderer_ppapi_host_; | 50 RendererPpapiHost* renderer_ppapi_host_; |
48 ppapi::host::ReplyMessageContext reply_context_; | 51 ppapi::host::ReplyMessageContext reply_context_; |
49 base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; | 52 base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; |
50 | 53 |
51 PP_FileSystemType type_; | 54 PP_FileSystemType type_; |
52 bool opened_; // whether open is successful. | 55 bool opened_; // whether open is successful. |
53 GURL root_url_; | 56 GURL root_url_; |
54 bool called_open_; // whether open has been called. | 57 bool called_open_; // whether open has been called. |
55 | 58 |
56 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); | 59 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); |
57 }; | 60 }; |
58 | 61 |
59 } // namespace content | 62 } // namespace content |
60 | 63 |
61 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 64 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ |
OLD | NEW |