OLD | NEW |
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 #include "content/browser/devtools/protocol/memory_handler.h" | 5 #include "content/browser/devtools/protocol/memory_handler.h" |
6 | 6 |
7 #include "base/memory/memory_pressure_listener.h" | 7 #include "base/memory/memory_pressure_listener.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "content/browser/memory/memory_pressure_controller_impl.h" | 9 #include "content/browser/memory/memory_pressure_controller_impl.h" |
10 #include "content/public/common/content_features.h" | 10 #include "content/public/common/content_features.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 } else { | 39 } else { |
40 return Response::InternalError(base::StringPrintf( | 40 return Response::InternalError(base::StringPrintf( |
41 "Invalid memory pressure level '%s'", level.c_str())); | 41 "Invalid memory pressure level '%s'", level.c_str())); |
42 } | 42 } |
43 | 43 |
44 MemoryPressureControllerImpl::GetInstance() | 44 MemoryPressureControllerImpl::GetInstance() |
45 ->SimulatePressureNotificationInAllProcesses(parsed_level); | 45 ->SimulatePressureNotificationInAllProcesses(parsed_level); |
46 return Response::OK(); | 46 return Response::OK(); |
47 } | 47 } |
48 | 48 |
| 49 MemoryHandler::Response MemoryHandler::GetDOMCounters( |
| 50 int* documents, |
| 51 int* nodes, |
| 52 int* event_listeners) { |
| 53 return Response::FallThrough(); |
| 54 } |
| 55 |
49 } // namespace memory | 56 } // namespace memory |
50 } // namespace devtools | 57 } // namespace devtools |
51 } // namespace content | 58 } // namespace content |
OLD | NEW |