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

Side by Side Diff: content/child/web_memory_dump_provider_adapter.h

Issue 1706163002: Refactoring: Remove an argument 'enabled' from onHeapProfilingEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_ 5 #ifndef CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_
6 #define CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_ 6 #define CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/trace_event/memory_dump_provider.h" 9 #include "base/trace_event/memory_dump_provider.h"
10 10
(...skipping 10 matching lines...) Expand all
21 class WebMemoryDumpProviderAdapter 21 class WebMemoryDumpProviderAdapter
22 : public base::trace_event::MemoryDumpProvider { 22 : public base::trace_event::MemoryDumpProvider {
23 public: 23 public:
24 explicit WebMemoryDumpProviderAdapter(blink::WebMemoryDumpProvider* wmdp); 24 explicit WebMemoryDumpProviderAdapter(blink::WebMemoryDumpProvider* wmdp);
25 ~WebMemoryDumpProviderAdapter() override; 25 ~WebMemoryDumpProviderAdapter() override;
26 26
27 // base::trace_event::MemoryDumpProvider implementation. 27 // base::trace_event::MemoryDumpProvider implementation.
28 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, 28 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
29 base::trace_event::ProcessMemoryDump* pmd) override; 29 base::trace_event::ProcessMemoryDump* pmd) override;
30 30
31 void OnHeapProfilingEnabled(bool enabled) override; 31 void OnHeapProfilingEnabled() override;
32 32
33 bool is_registered() const { return is_registered_; } 33 bool is_registered() const { return is_registered_; }
34 void set_is_registered(bool is_registered) { is_registered_ = is_registered; } 34 void set_is_registered(bool is_registered) { is_registered_ = is_registered; }
35 35
36 private: 36 private:
37 // The underlying WebMemoryDumpProvider instance to which the OnMemoryDump() 37 // The underlying WebMemoryDumpProvider instance to which the OnMemoryDump()
38 // calls will be proxied to. 38 // calls will be proxied to.
39 blink::WebMemoryDumpProvider* web_memory_dump_provider_; // Not owned. 39 blink::WebMemoryDumpProvider* web_memory_dump_provider_; // Not owned.
40 40
41 // True iff this has been registered with the MDM (and not unregistered yet). 41 // True iff this has been registered with the MDM (and not unregistered yet).
42 bool is_registered_; 42 bool is_registered_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(WebMemoryDumpProviderAdapter); 44 DISALLOW_COPY_AND_ASSIGN(WebMemoryDumpProviderAdapter);
45 }; 45 };
46 46
47 } // namespace content 47 } // namespace content
48 48
49 #endif // CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_ 49 #endif // CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_
OLDNEW
« no previous file with comments | « base/trace_event/memory_dump_provider.h ('k') | content/child/web_memory_dump_provider_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698