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

Side by Side Diff: content/browser/devtools/protocol/memory_handler.cc

Issue 2478703002: [DevTools] Remove handlers = browser from protocol definition. (Closed)
Patch Set: fixes Created 4 years, 1 month 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 #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
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
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/memory_handler.h ('k') | content/browser/devtools/protocol/page_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698