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

Unified Diff: content/child/web_discardable_memory_impl.h

Issue 1787973002: Replace blink::WebDiscardableMemory with base::DiscardableMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use StringPiece::as_string Created 4 years, 9 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 | « content/child/blink_platform_impl.cc ('k') | content/child/web_discardable_memory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_discardable_memory_impl.h
diff --git a/content/child/web_discardable_memory_impl.h b/content/child/web_discardable_memory_impl.h
deleted file mode 100644
index dcde8be687f5a625f8c398f0c340010f2b1bebeb..0000000000000000000000000000000000000000
--- a/content/child/web_discardable_memory_impl.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 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 CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_
-#define CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_
-
-#include <stddef.h>
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "third_party/WebKit/public/platform/WebDiscardableMemory.h"
-
-namespace base {
-class DiscardableMemory;
-}
-
-namespace content {
-
-// Implementation of WebDiscardableMemory that is responsible for allocating
-// discardable memory.
-class WebDiscardableMemoryImpl : public blink::WebDiscardableMemory {
- public:
- ~WebDiscardableMemoryImpl() override;
-
- static scoped_ptr<WebDiscardableMemoryImpl> CreateLockedMemory(size_t size);
-
- // blink::WebDiscardableMemory:
- bool lock() override;
- void unlock() override;
- void* data() override;
- blink::WebMemoryAllocatorDump* createMemoryAllocatorDump(
- const blink::WebString& name,
- blink::WebProcessMemoryDump* wpmd) const override;
-
- private:
- WebDiscardableMemoryImpl(scoped_ptr<base::DiscardableMemory> memory);
-
- scoped_ptr<base::DiscardableMemory> discardable_;
-
- DISALLOW_COPY_AND_ASSIGN(WebDiscardableMemoryImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/web_discardable_memory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698