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

Side by Side Diff: webkit/glue/resource_loader_bridge.h

Issue 52040: Chrome changes to support cached form submissions.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // The intent of this file is to provide a type-neutral abstraction between 5 // The intent of this file is to provide a type-neutral abstraction between
6 // Chrome and WebKit for resource loading. This pure-virtual interface is 6 // Chrome and WebKit for resource loading. This pure-virtual interface is
7 // implemented by the embedder, which also provides a factory method Create 7 // implemented by the embedder, which also provides a factory method Create
8 // to instantiate this object. 8 // to instantiate this object.
9 // 9 //
10 // One of these objects will be created by WebKit for each request. WebKit 10 // One of these objects will be created by WebKit for each request. WebKit
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // to the request body. May only be used with HTTP(S) POST requests. 193 // to the request body. May only be used with HTTP(S) POST requests.
194 void AppendFileToUpload(const std::wstring& file_path) { 194 void AppendFileToUpload(const std::wstring& file_path) {
195 AppendFileRangeToUpload(file_path, 0, kuint64max); 195 AppendFileRangeToUpload(file_path, 0, kuint64max);
196 } 196 }
197 197
198 // Call this method before calling Start() to append the contents of a file 198 // Call this method before calling Start() to append the contents of a file
199 // to the request body. May only be used with HTTP(S) POST requests. 199 // to the request body. May only be used with HTTP(S) POST requests.
200 virtual void AppendFileRangeToUpload(const std::wstring& file_path, 200 virtual void AppendFileRangeToUpload(const std::wstring& file_path,
201 uint64 offset, uint64 length) = 0; 201 uint64 offset, uint64 length) = 0;
202 202
203 // Call this method before calling Start() to assign an upload identifier to
204 // this request. This is used to enable caching of POST responses. A value
205 // of 0 implies the unspecified identifier.
206 virtual void SetUploadIdentifier(int64 identifier) = 0;
207
203 // Call this method to initiate the request. If this method succeeds, then 208 // Call this method to initiate the request. If this method succeeds, then
204 // the peer's methods will be called asynchronously to report various events. 209 // the peer's methods will be called asynchronously to report various events.
205 virtual bool Start(Peer* peer) = 0; 210 virtual bool Start(Peer* peer) = 0;
206 211
207 // Call this method to cancel a request that is in progress. This method 212 // Call this method to cancel a request that is in progress. This method
208 // causes the request to immediately transition into the 'done' state. The 213 // causes the request to immediately transition into the 'done' state. The
209 // OnCompletedRequest method will be called asynchronously; this assumes 214 // OnCompletedRequest method will be called asynchronously; this assumes
210 // the peer is still valid. 215 // the peer is still valid.
211 virtual void Cancel() = 0; 216 virtual void Cancel() = 0;
212 217
(...skipping 14 matching lines...) Expand all
227 // construction must go through Create() 232 // construction must go through Create()
228 ResourceLoaderBridge(); 233 ResourceLoaderBridge();
229 234
230 private: 235 private:
231 DISALLOW_EVIL_CONSTRUCTORS(ResourceLoaderBridge); 236 DISALLOW_EVIL_CONSTRUCTORS(ResourceLoaderBridge);
232 }; 237 };
233 238
234 } // namespace webkit_glue 239 } // namespace webkit_glue
235 240
236 #endif // RESOURCE_LOADER_BRIDGE_ 241 #endif // RESOURCE_LOADER_BRIDGE_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698