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

Side by Side Diff: third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.h

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebCacheMemoryDumpProvider_h 5 #ifndef WebCacheMemoryDumpProvider_h
6 #define WebCacheMemoryDumpProvider_h 6 #define WebCacheMemoryDumpProvider_h
7 7
8 #include "core/fetch/MemoryCache.h" 8 #include "core/fetch/MemoryCache.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "public/platform/WebCommon.h" 10 #include "public/platform/WebCommon.h"
11 #include "public/platform/WebMemoryDumpProvider.h" 11 #include "public/platform/WebMemoryDumpProvider.h"
12 #include "wtf/Allocator.h" 12 #include "wtf/Allocator.h"
13 #include "wtf/MainThread.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 // This class is wrapper around MemoryCache to take memory snapshots. It dumps 16 // This class is wrapper around MemoryCache to take memory snapshots. It dumps
18 // the stats of cache only after the cache is created. 17 // the stats of cache only after the cache is created.
19 class CORE_EXPORT WebCacheMemoryDumpProvider final : public WebMemoryDumpProvide r { 18 class CORE_EXPORT WebCacheMemoryDumpProvider final : public WebMemoryDumpProvide r {
20 USING_FAST_MALLOC(WebCacheMemoryDumpProvider); 19 USING_FAST_MALLOC(WebCacheMemoryDumpProvider);
21 public: 20 public:
22 // This class is singleton since there is a global MemoryCache object. 21 // This class is singleton since there is a global MemoryCache object.
23 static WebCacheMemoryDumpProvider* instance(); 22 static WebCacheMemoryDumpProvider* instance();
(...skipping 10 matching lines...) Expand all
34 33
35 private: 34 private:
36 WebCacheMemoryDumpProvider(); 35 WebCacheMemoryDumpProvider();
37 36
38 WeakPersistent<MemoryCache> m_memoryCache; 37 WeakPersistent<MemoryCache> m_memoryCache;
39 }; 38 };
40 39
41 } // namespace blink 40 } // namespace blink
42 41
43 #endif // WebCacheMemoryDumpProvider_h 42 #endif // WebCacheMemoryDumpProvider_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.cpp ('k') | third_party/WebKit/Source/core/frame/History.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698