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

Side by Side Diff: content/public/browser/memory_pressure.cc

Issue 1640423002: Make memory pressure IPC accessible from content/public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 (c) 2016 The Chromium Authors. All rights reserved.
petrcermak 2016/01/28 09:55:05 nit: Drop "(c)" (https://www.chromium.org/develope
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/browser/memory_pressure.h"
6
7 #include "content/browser/memory/memory_pressure_controller.h"
8
9 namespace content {
10
11 void SendPressureNotification(
12 const BrowserChildProcessHost* child_process_host,
13 base::MemoryPressureListener::MemoryPressureLevel level) {
14 MemoryPressureController::GetInstance()->SendPressureNotification(
15 child_process_host, level);
16 }
17
18 void SendPressureNotification(
19 const RenderProcessHost* render_process_host,
20 base::MemoryPressureListener::MemoryPressureLevel level) {
21 MemoryPressureController::GetInstance()->SendPressureNotification(
22 render_process_host, level);
23 }
24
25 } // namespace content
OLDNEW
« content/public/browser/memory_pressure.h ('K') | « content/public/browser/memory_pressure.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698