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

Unified Diff: blimp/common/blob_cache/in_memory_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/blob_cache/id_util_unittest.cc ('k') | blimp/common/blob_cache/in_memory_blob_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/blob_cache/in_memory_blob_cache.h
diff --git a/blimp/common/blob_cache/in_memory_blob_cache.h b/blimp/common/blob_cache/in_memory_blob_cache.h
deleted file mode 100644
index 799d920fedc061fd2fc92f6b96e3d857fa1e00ac..0000000000000000000000000000000000000000
--- a/blimp/common/blob_cache/in_memory_blob_cache.h
+++ /dev/null
@@ -1,40 +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_IN_MEMORY_BLOB_CACHE_H_
-#define BLIMP_COMMON_BLOB_CACHE_IN_MEMORY_BLOB_CACHE_H_
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "blimp/common/blimp_common_export.h"
-#include "blimp/common/blob_cache/blob_cache.h"
-
-namespace blimp {
-
-// InMemoryBlobCache provides an in-memory implementation of BlobCache that
-// never evicts items.
-class BLIMP_COMMON_EXPORT InMemoryBlobCache : public BlobCache {
- public:
- InMemoryBlobCache();
- ~InMemoryBlobCache() override;
-
- // BlobCache implementation.
- std::vector<BlobId> GetCachedBlobIds() const override;
- bool Contains(const BlobId& id) const override;
- void Put(const BlobId& id, BlobDataPtr data) override;
- BlobDataPtr Get(const BlobId& id) const override;
-
- private:
- std::map<const BlobId, BlobDataPtr> cache_;
-
- DISALLOW_COPY_AND_ASSIGN(InMemoryBlobCache);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_COMMON_BLOB_CACHE_IN_MEMORY_BLOB_CACHE_H_
« no previous file with comments | « blimp/common/blob_cache/id_util_unittest.cc ('k') | blimp/common/blob_cache/in_memory_blob_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698