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

Side by Side Diff: content/renderer/pepper/pepper_file_system_host.h

Issue 14796018: Cleanup: Deprecate FileSystemCallbackDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 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 18 matching lines...) Expand all
29 // ppapi::host::ResourceHost override. 29 // ppapi::host::ResourceHost override.
30 virtual int32_t OnResourceMessageReceived( 30 virtual int32_t OnResourceMessageReceived(
31 const IPC::Message& msg, 31 const IPC::Message& msg,
32 ppapi::host::HostMessageContext* context) OVERRIDE; 32 ppapi::host::HostMessageContext* context) OVERRIDE;
33 33
34 // Supports FileRefs direct access on the host side. 34 // Supports FileRefs direct access on the host side.
35 PP_FileSystemType GetType() const { return type_; } 35 PP_FileSystemType GetType() const { return type_; }
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 // Callback for OpenFileSystem.
40 void OpenFileSystemReply(int32_t pp_error, 40 void OpenFileSystemReply(base::PlatformFileError platform_error,
yzshen1 2013/05/14 16:50:09 nit: It could be moved to the private section.
kinuko 2013/05/15 13:58:03 Hmm, looks like this needs to be public as it's ca
yzshen1 2013/05/15 18:13:54 I think they could be private since they are base:
41 const std::string& name_unused,
41 const GURL& root); 42 const GURL& root);
42 43
43 private: 44 private:
44 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, 45 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
45 int64_t expected_size); 46 int64_t expected_size);
46 int32_t OnHostMsgInitIsolatedFileSystem( 47 int32_t OnHostMsgInitIsolatedFileSystem(
47 ppapi::host::HostMessageContext* context, 48 ppapi::host::HostMessageContext* context,
48 const std::string& fsid); 49 const std::string& fsid);
49 50
50 RendererPpapiHost* renderer_ppapi_host_; 51 RendererPpapiHost* renderer_ppapi_host_;
51 ppapi::host::ReplyMessageContext reply_context_; 52 ppapi::host::ReplyMessageContext reply_context_;
52 base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; 53 base::WeakPtrFactory<PepperFileSystemHost> weak_factory_;
53 54
54 PP_FileSystemType type_; 55 PP_FileSystemType type_;
55 bool opened_; // whether open is successful. 56 bool opened_; // whether open is successful.
56 GURL root_url_; 57 GURL root_url_;
57 bool called_open_; // whether open has been called. 58 bool called_open_; // whether open has been called.
58 59
59 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); 60 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost);
60 }; 61 };
61 62
62 } // namespace content 63 } // namespace content
63 64
64 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ 65 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698