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

Unified Diff: content/browser/cache_storage/cache_storage_manager.h

Issue 1751833002: Use string16 for cache_name in the back end of CacheStorage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/browser/cache_storage/cache_storage_manager.h
diff --git a/content/browser/cache_storage/cache_storage_manager.h b/content/browser/cache_storage/cache_storage_manager.h
index 3ae3da80a87223da8fe2f0abe49480dfe7e7741b..f0ff35df0148239e8c4c08792b08f62cad560143 100644
--- a/content/browser/cache_storage/cache_storage_manager.h
+++ b/content/browser/cache_storage/cache_storage_manager.h
@@ -11,6 +11,7 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/strings/string16.h"
#include "content/browser/cache_storage/cache_storage.h"
#include "content/common/content_export.h"
#include "content/public/browser/cache_storage_context.h"
@@ -55,18 +56,18 @@ class CONTENT_EXPORT CacheStorageManager {
// Methods to support the CacheStorage spec. These methods call the
// corresponding CacheStorage method on the appropriate thread.
void OpenCache(const GURL& origin,
- const std::string& cache_name,
+ const base::string16& cache_name,
const CacheStorage::CacheAndErrorCallback& callback);
void HasCache(const GURL& origin,
- const std::string& cache_name,
+ const base::string16& cache_name,
const CacheStorage::BoolAndErrorCallback& callback);
void DeleteCache(const GURL& origin,
- const std::string& cache_name,
+ const base::string16& cache_name,
const CacheStorage::BoolAndErrorCallback& callback);
void EnumerateCaches(const GURL& origin,
const CacheStorage::StringsAndErrorCallback& callback);
void MatchCache(const GURL& origin,
- const std::string& cache_name,
+ const base::string16& cache_name,
scoped_ptr<ServiceWorkerFetchRequest> request,
const CacheStorageCache::ResponseCallback& callback);
void MatchAllCaches(const GURL& origin,

Powered by Google App Engine
This is Rietveld 408576698