Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / components / web_cache / renderer / web_cache_memory_dump_provider.h
blob75c65ea1497f220759009896cc0338e17fa95df6
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_MEMORY_DUMP_PROVIDER_H
6 #define COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_MEMORY_DUMP_PROVIDER_H
8 #include "base/lazy_instance.h"
9 #include "base/trace_event/memory_dump_provider.h"
11 namespace web_cache {
13 class WebCacheMemoryDumpProvider
14 : public base::trace_event::MemoryDumpProvider {
15 public:
16 static WebCacheMemoryDumpProvider* GetInstance();
18 // base::trace_event::MemoryDumpProvider implementation.
19 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
20 base::trace_event::ProcessMemoryDump* pmd) override;
22 private:
23 friend struct base::DefaultLazyInstanceTraits<WebCacheMemoryDumpProvider>;
25 WebCacheMemoryDumpProvider();
26 ~WebCacheMemoryDumpProvider() override;
28 DISALLOW_COPY_AND_ASSIGN(WebCacheMemoryDumpProvider);
31 } // namespace web_cache
33 #endif // COMPONENTS_WEB_CACHE_RENDERER_WEB_CACHE_MEMORY_DUMP_PROVIDER_H