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

Unified Diff: content/public/browser/browser_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
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index 7974c7dc63cdc97c5e28f25d1dffb157558aa737..5a0524ab0810e0031a8881996de33ccdde9b5105 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -17,6 +17,7 @@ class GURL;
namespace base {
class FilePath;
+class Time;
}
namespace storage {
@@ -88,6 +89,14 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
const char* data, size_t length,
const BlobCallback& callback);
+ // |callback| returns a nullptr scoped_ptr on failure.
+ static void CreateFileBackedBlob(BrowserContext* browser_context,
+ const base::FilePath& path,
+ int64_t offset,
+ int64_t size,
+ const base::Time& expected_modification_time,
+ const BlobCallback& callback);
+
// Delivers a push message with |data| to the Service Worker identified by
// |origin| and |service_worker_registration_id|.
static void DeliverPushMessage(
« no previous file with comments | « content/browser/fileapi/chrome_blob_storage_context.cc ('k') | extensions/browser/api/printer_provider/printer_provider_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698