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

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

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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/browser/blob_storage/chrome_blob_storage_context.h
diff --git a/content/browser/blob_storage/chrome_blob_storage_context.h b/content/browser/blob_storage/chrome_blob_storage_context.h
index bd02cb1e2d8e9d6b9b120ce90833e101ecb1e21a..9475f566f3f2078997095ceefd863efa113011f5 100644
--- a/content/browser/blob_storage/chrome_blob_storage_context.h
+++ b/content/browser/blob_storage/chrome_blob_storage_context.h
@@ -10,12 +10,14 @@
#include <memory>
+#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/sequenced_task_runner_helpers.h"
#include "content/common/content_export.h"
namespace base {
class FilePath;
+class TaskRunner;
class Time;
}
@@ -44,7 +46,8 @@ class CONTENT_EXPORT ChromeBlobStorageContext
static ChromeBlobStorageContext* GetFor(
BrowserContext* browser_context);
- void InitializeOnIOThread();
+ void InitializeOnIOThread(base::FilePath blob_storage_dir,
+ scoped_refptr<base::TaskRunner> file_task_runner);
storage::BlobStorageContext* context() const { return context_.get(); }
@@ -70,6 +73,7 @@ class CONTENT_EXPORT ChromeBlobStorageContext
void DeleteOnCorrectThread() const;
+ base::FilePath blob_storage_dir_;
std::unique_ptr<storage::BlobStorageContext> context_;
};

Powered by Google App Engine
This is Rietveld 408576698