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

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

Issue 3282003: Support handling blob URL and resolve blob references in upload data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 311 }
312 312
313 // Call this method before calling Start() to append the contents of a file 313 // Call this method before calling Start() to append the contents of a file
314 // to the request body. May only be used with HTTP(S) POST requests. 314 // to the request body. May only be used with HTTP(S) POST requests.
315 virtual void AppendFileRangeToUpload( 315 virtual void AppendFileRangeToUpload(
316 const FilePath& file_path, 316 const FilePath& file_path,
317 uint64 offset, 317 uint64 offset,
318 uint64 length, 318 uint64 length,
319 const base::Time& expected_modification_time) = 0; 319 const base::Time& expected_modification_time) = 0;
320 320
321 // Call this method before calling Start() to append the contents of a blob
322 // to the request body. May only be used with HTTP(S) POST requests.
323 virtual void AppendBlobToUpload(const GURL& blob_url) = 0;
324
321 // Call this method before calling Start() to assign an upload identifier to 325 // Call this method before calling Start() to assign an upload identifier to
322 // this request. This is used to enable caching of POST responses. A value 326 // this request. This is used to enable caching of POST responses. A value
323 // of 0 implies the unspecified identifier. 327 // of 0 implies the unspecified identifier.
324 virtual void SetUploadIdentifier(int64 identifier) = 0; 328 virtual void SetUploadIdentifier(int64 identifier) = 0;
325 329
326 // Call this method to initiate the request. If this method succeeds, then 330 // Call this method to initiate the request. If this method succeeds, then
327 // the peer's methods will be called asynchronously to report various events. 331 // the peer's methods will be called asynchronously to report various events.
328 virtual bool Start(Peer* peer) = 0; 332 virtual bool Start(Peer* peer) = 0;
329 333
330 // Call this method to cancel a request that is in progress. This method 334 // Call this method to cancel a request that is in progress. This method
(...skipping 19 matching lines...) Expand all
350 // construction must go through Create() 354 // construction must go through Create()
351 ResourceLoaderBridge(); 355 ResourceLoaderBridge();
352 356
353 private: 357 private:
354 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 358 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
355 }; 359 };
356 360
357 } // namespace webkit_glue 361 } // namespace webkit_glue
358 362
359 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ 363 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698