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

Unified Diff: blimp/common/blob_cache/blob_cache.h

Issue 2626423004: Remove all //blimp code. (Closed)
Patch Set: One last(?) `git merge` for good measure. Created 3 years, 11 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 | « blimp/common/blimp_common_export.h ('k') | blimp/common/blob_cache/id_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/blob_cache/blob_cache.h
diff --git a/blimp/common/blob_cache/blob_cache.h b/blimp/common/blob_cache/blob_cache.h
deleted file mode 100644
index e078fbd207ccae0cf64f29e3515b166b1dd76430..0000000000000000000000000000000000000000
--- a/blimp/common/blob_cache/blob_cache.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_COMMON_BLOB_CACHE_BLOB_CACHE_H_
-#define BLIMP_COMMON_BLOB_CACHE_BLOB_CACHE_H_
-
-#include <string>
-#include <vector>
-
-#include "base/memory/ref_counted.h"
-#include "blimp/common/blimp_common_export.h"
-
-namespace blimp {
-
-using BlobId = std::string;
-using BlobData = base::RefCountedData<std::string>;
-
-// Immutable, ref-counted representation of blob payloads, suitable for sharing
-// across threads.
-using BlobDataPtr = scoped_refptr<const BlobData>;
-
-// An interface for a cache of blobs.
-class BLIMP_COMMON_EXPORT BlobCache {
- public:
- virtual ~BlobCache() {}
-
- // Gets the keys of items stored by the cache.
- virtual std::vector<BlobId> GetCachedBlobIds() const = 0;
-
- // Returns true if there is a cache item |id|.
- virtual bool Contains(const BlobId& id) const = 0;
-
- // Stores |data| with the identifier |id| in the cache.
- // Command is ignored if there is already a cache item stored under |id|.
- virtual void Put(const BlobId& id, BlobDataPtr data) = 0;
-
- // Returns a pointer to the cache item |id|, or nullptr if no cache item
- // exists under that identifier.
- virtual BlobDataPtr Get(const BlobId& id) const = 0;
-};
-
-} // namespace blimp
-
-#endif // BLIMP_COMMON_BLOB_CACHE_BLOB_CACHE_H_
« no previous file with comments | « blimp/common/blimp_common_export.h ('k') | blimp/common/blob_cache/id_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698