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

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

Issue 10828252: Support FileSystem URL in File object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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. 7 // implemented by the embedder.
8 // 8 //
9 // One of these objects will be created by WebKit for each request. WebKit 9 // One of these objects will be created by WebKit for each request. WebKit
10 // will own the pointer to the bridge, and will delete it when the request is 10 // will own the pointer to the bridge, and will delete it when the request is
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 virtual void AppendFileRangeToUpload( 363 virtual void AppendFileRangeToUpload(
364 const FilePath& file_path, 364 const FilePath& file_path,
365 uint64 offset, 365 uint64 offset,
366 uint64 length, 366 uint64 length,
367 const base::Time& expected_modification_time) = 0; 367 const base::Time& expected_modification_time) = 0;
368 368
369 // Call this method before calling Start() to append the contents of a blob 369 // Call this method before calling Start() to append the contents of a blob
370 // to the request body. May only be used with HTTP(S) POST requests. 370 // to the request body. May only be used with HTTP(S) POST requests.
371 virtual void AppendBlobToUpload(const GURL& blob_url) = 0; 371 virtual void AppendBlobToUpload(const GURL& blob_url) = 0;
372 372
373 // Call this method before calling Start() to append the contents of a file
374 // specified by FileSYstem URL to the request body. May only be used with
375 // HTTP(S) POST requests.
376 virtual void AppendFileSystemFileRangeToUpload(
377 const GURL& url,
378 uint64 offset,
379 uint64 length,
380 const base::Time& expected_modification_time) = 0;
381
373 // Call this method before calling Start() to assign an upload identifier to 382 // Call this method before calling Start() to assign an upload identifier to
374 // this request. This is used to enable caching of POST responses. A value 383 // this request. This is used to enable caching of POST responses. A value
375 // of 0 implies the unspecified identifier. 384 // of 0 implies the unspecified identifier.
376 virtual void SetUploadIdentifier(int64 identifier) = 0; 385 virtual void SetUploadIdentifier(int64 identifier) = 0;
377 386
378 // Call this method to initiate the request. If this method succeeds, then 387 // Call this method to initiate the request. If this method succeeds, then
379 // the peer's methods will be called asynchronously to report various events. 388 // the peer's methods will be called asynchronously to report various events.
380 virtual bool Start(Peer* peer) = 0; 389 virtual bool Start(Peer* peer) = 0;
381 390
382 // Call this method to cancel a request that is in progress. This method 391 // Call this method to cancel a request that is in progress. This method
(...skipping 22 matching lines...) Expand all
405 // methods may be called to construct the body of the request. 414 // methods may be called to construct the body of the request.
406 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); 415 WEBKIT_GLUE_EXPORT ResourceLoaderBridge();
407 416
408 private: 417 private:
409 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 418 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
410 }; 419 };
411 420
412 } // namespace webkit_glue 421 } // namespace webkit_glue
413 422
414 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ 423 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698