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

Unified Diff: content/browser/fileapi/chrome_blob_storage_context.h

Issue 973993003: Instead of ArrayBuffer, pass blob with printerProvider.onPrintRequested (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase & add ext fun histogram Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/fileapi/chrome_blob_storage_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/fileapi/chrome_blob_storage_context.h
diff --git a/content/browser/fileapi/chrome_blob_storage_context.h b/content/browser/fileapi/chrome_blob_storage_context.h
index 8d8a5f226b47b4507f79b023645498597cf98e03..0c565459a2cf052e2e159132e972025fbe7fed73 100644
--- a/content/browser/fileapi/chrome_blob_storage_context.h
+++ b/content/browser/fileapi/chrome_blob_storage_context.h
@@ -10,6 +10,11 @@
#include "base/sequenced_task_runner_helpers.h"
#include "content/common/content_export.h"
+namespace base {
+class FilePath;
+class Time;
+}
+
namespace storage {
class BlobStorageContext;
}
@@ -43,6 +48,13 @@ class CONTENT_EXPORT ChromeBlobStorageContext
scoped_ptr<BlobHandle> CreateMemoryBackedBlob(const char* data,
size_t length);
+ // Returns a NULL scoped_ptr on failure.
+ scoped_ptr<BlobHandle> CreateFileBackedBlob(
+ const base::FilePath& path,
+ int64_t offset,
+ int64_t size,
+ const base::Time& expected_modification_time);
+
protected:
virtual ~ChromeBlobStorageContext();
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/fileapi/chrome_blob_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698