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

Unified Diff: base/trace_event/java_heap_dump_provider_android.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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 | « base/trace_event/BUILD.gn ('k') | base/trace_event/java_heap_dump_provider_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/java_heap_dump_provider_android.h
diff --git a/base/trace_event/malloc_dump_provider.h b/base/trace_event/java_heap_dump_provider_android.h
similarity index 55%
copy from base/trace_event/malloc_dump_provider.h
copy to base/trace_event/java_heap_dump_provider_android.h
index b6f697363a0080fb121d8725a6085160bb456f48..82807510b2a463d799b183400127b8c94ded1c27 100644
--- a/base/trace_event/malloc_dump_provider.h
+++ b/base/trace_event/java_heap_dump_provider_android.h
@@ -2,10 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_TRACE_EVENT_MALLOC_DUMP_PROVIDER_H_
-#define BASE_TRACE_EVENT_MALLOC_DUMP_PROVIDER_H_
-
-#include <istream>
+#ifndef BASE_TRACE_EVENT_JAVA_HEAP_DUMP_PROVIDER_ANDROID_H_
+#define BASE_TRACE_EVENT_JAVA_HEAP_DUMP_PROVIDER_ANDROID_H_
#include "base/memory/singleton.h"
#include "base/trace_event/memory_dump_provider.h"
@@ -14,24 +12,24 @@ namespace base {
namespace trace_event {
// Dump provider which collects process-wide memory stats.
-class BASE_EXPORT MallocDumpProvider : public MemoryDumpProvider {
+class JavaHeapDumpProvider : public MemoryDumpProvider {
public:
- static MallocDumpProvider* GetInstance();
+ static JavaHeapDumpProvider* GetInstance();
// MemoryDumpProvider implementation.
bool DumpInto(ProcessMemoryDump* pmd) override;
const char* GetFriendlyName() const override;
private:
- friend struct DefaultSingletonTraits<MallocDumpProvider>;
+ friend struct DefaultSingletonTraits<JavaHeapDumpProvider>;
- MallocDumpProvider();
- ~MallocDumpProvider() override;
+ JavaHeapDumpProvider();
+ ~JavaHeapDumpProvider() override;
- DISALLOW_COPY_AND_ASSIGN(MallocDumpProvider);
+ DISALLOW_COPY_AND_ASSIGN(JavaHeapDumpProvider);
};
} // namespace trace_event
} // namespace base
-#endif // BASE_TRACE_EVENT_MALLOC_DUMP_PROVIDER_H_
+#endif // BASE_TRACE_EVENT_JAVA_HEAP_DUMP_PROVIDER_ANDROID_H_
« no previous file with comments | « base/trace_event/BUILD.gn ('k') | base/trace_event/java_heap_dump_provider_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698