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

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

Issue 1369253002: Add Web Resources usage to chrome://tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache2_base
Patch Set: Use singleton provider. Created 5 years, 2 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
(Empty)
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.
4
5 #ifndef WebCacheMemoryDumpProvider_h
6 #define WebCacheMemoryDumpProvider_h
7
8 #include "core/fetch/MemoryCache.h"
9 #include "platform/heap/Handle.h"
10 #include "public/platform/WebCommon.h"
11 #include "public/platform/WebMemoryDumpProvider.h"
12
13 namespace blink {
14
15 class BLINK_PLATFORM_EXPORT WebCacheMemoryDumpProvider final : public WebMemoryD umpProvider {
haraken 2015/10/14 00:57:41 It seems strange to put WebXXX in core/. WebXXX ne
ssid 2015/10/14 05:01:22 I think it's the name only should be changed here.
haraken 2015/10/14 05:09:44 The WebCacheMemoryDumpProvider inherits from WebMe
ssid 2015/10/14 06:13:17 Platform cannot use core. So I cannot use memory c
haraken 2015/10/14 08:15:44 Inheriting public/platform/ from core/ sounds a bi
haraken 2015/10/14 09:04:07 BLINK_PLATFORM_EXPORT => CORE_EXPORT
ssid 2015/10/14 12:06:40 Done.
16 public:
17 static WebCacheMemoryDumpProvider* instance();
haraken 2015/10/14 09:04:07 Add a comment on why this needs to be a singleton.
ssid 2015/10/14 12:06:40 Done.
18 ~WebCacheMemoryDumpProvider() override;
19
20 // WebMemoryDumpProvider implementation.
21 bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) overrid e;
22
23 void setMemoryCache(MemoryCache* memoryCache) { m_memoryCache = memoryCache; }
Primiano Tucci (use gerrit) 2015/10/14 11:06:58 is there a way to check that the thread on which s
ssid 2015/10/14 12:06:40 Done.
24
25 private:
26 WebCacheMemoryDumpProvider();
27
28 WeakPersistent<MemoryCache> m_memoryCache;
29 };
30
31 } // namespace blink
32
33 #endif // WebCacheMemoryDumpProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698