summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/platform/fonts/FontCacheMemoryDumpProvider.h
blob: b69e7a52374ac5efc1d7934529d1fff4694b626f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2015 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 FontCacheMemoryDumpProvider_h
#define FontCacheMemoryDumpProvider_h

#include "platform/PlatformExport.h"
#include "public/platform/WebMemoryDumpProvider.h"
#include "wtf/Allocator.h"

namespace blink {

class PLATFORM_EXPORT FontCacheMemoryDumpProvider final : public WebMemoryDumpProvider {
    USING_FAST_MALLOC(FontCacheMemoryDumpProvider);
public:
    static FontCacheMemoryDumpProvider* instance();
    ~FontCacheMemoryDumpProvider() override { }

    // WebMemoryDumpProvider implementation.
    bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) override;

private:
    FontCacheMemoryDumpProvider() { }
};

} // namespace blink

#endif // FontCacheMemoryDumpProvider_h