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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_file_system_browser_host.h

Issue 130053003: [Pepper] Wire up append mode writing support of FileIO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/max_written_offsets/file_sizes/g Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 int32_t OnHostMsgOpen( 108 int32_t OnHostMsgOpen(
109 ppapi::host::HostMessageContext* context, 109 ppapi::host::HostMessageContext* context,
110 int64_t expected_size); 110 int64_t expected_size);
111 int32_t OnHostMsgInitIsolatedFileSystem( 111 int32_t OnHostMsgInitIsolatedFileSystem(
112 ppapi::host::HostMessageContext* context, 112 ppapi::host::HostMessageContext* context,
113 const std::string& fsid, 113 const std::string& fsid,
114 PP_IsolatedFileSystemType_Private type); 114 PP_IsolatedFileSystemType_Private type);
115 int32_t OnHostMsgReserveQuota( 115 int32_t OnHostMsgReserveQuota(
116 ppapi::host::HostMessageContext* context, 116 ppapi::host::HostMessageContext* context,
117 int64_t amount, 117 int64_t amount,
118 const ppapi::FileSizeMap& max_written_offsets); 118 const ppapi::FileGrowthMap& file_growth);
bbudge 2014/01/27 21:53:37 file_growths
tzik 2014/01/28 06:12:49 Done.
119 119
120 void SendReplyForFileSystem( 120 void SendReplyForFileSystem(
121 ppapi::host::ReplyMessageContext reply_context, 121 ppapi::host::ReplyMessageContext reply_context,
122 int32_t pp_error); 122 int32_t pp_error);
123 void SendReplyForIsolatedFileSystem( 123 void SendReplyForIsolatedFileSystem(
124 ppapi::host::ReplyMessageContext reply_context, 124 ppapi::host::ReplyMessageContext reply_context,
125 const std::string& fsid, 125 const std::string& fsid,
126 int32_t error); 126 int32_t error);
127 127
128 void SetFileSystemContext( 128 void SetFileSystemContext(
129 scoped_refptr<fileapi::FileSystemContext> file_system_context); 129 scoped_refptr<fileapi::FileSystemContext> file_system_context);
130 130
131 bool ShouldCreateQuotaReservation() const; 131 bool ShouldCreateQuotaReservation() const;
132 void CreateQuotaReservation(const base::Closure& callback); 132 void CreateQuotaReservation(const base::Closure& callback);
133 void GotQuotaReservation( 133 void GotQuotaReservation(
134 const base::Closure& callback, 134 const base::Closure& callback,
135 scoped_refptr<QuotaReservation> quota_reservation); 135 scoped_refptr<QuotaReservation> quota_reservation);
136 136
137 void GotReservedQuota( 137 void GotReservedQuota(
138 ppapi::host::ReplyMessageContext reply_context, 138 ppapi::host::ReplyMessageContext reply_context,
139 int64_t amount, 139 int64_t amount,
140 const ppapi::FileSizeMap& max_written_offsets); 140 const ppapi::FileSizeMap& file_sizes);
141 void DidOpenQuotaFile( 141 void DidOpenQuotaFile(
142 PP_Resource file_io_resource, 142 PP_Resource file_io_resource,
143 const OpenQuotaFileCallback& callback, 143 const OpenQuotaFileCallback& callback,
144 int64_t max_written_offset); 144 int64_t max_written_offset);
145 145
146 std::string GetPluginMimeType() const; 146 std::string GetPluginMimeType() const;
147 147
148 // Returns plugin ID generated from plugin's MIME type. 148 // Returns plugin ID generated from plugin's MIME type.
149 std::string GeneratePluginId(const std::string& mime_type) const; 149 std::string GeneratePluginId(const std::string& mime_type) const;
150 150
(...skipping 21 matching lines...) Expand all
172 std::string fsid_; // used only for isolated filesystems. 172 std::string fsid_; // used only for isolated filesystems.
173 173
174 base::WeakPtrFactory<PepperFileSystemBrowserHost> weak_factory_; 174 base::WeakPtrFactory<PepperFileSystemBrowserHost> weak_factory_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemBrowserHost); 176 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemBrowserHost);
177 }; 177 };
178 178
179 } // namespace content 179 } // namespace content
180 180
181 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_ H_ 181 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698