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

Side by Side Diff: content/browser/memory/memory_message_filter.h

Issue 1332583002: Architecture for cross-process memory notification suppressing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment explaining the use of scoped_ptr in the browser test matcher Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
7
8 #include "content/common/content_export.h"
9 #include "content/public/browser/browser_message_filter.h"
10
11 namespace content {
12
13 // This class sends memory messages from the browser process.
14 // See also: child_memory_message_filter.h
15 class CONTENT_EXPORT MemoryMessageFilter : public BrowserMessageFilter {
16 public:
17 MemoryMessageFilter();
18
19 // BrowserMessageFilter implementation.
20 void OnFilterAdded(IPC::Sender* sender) override;
21 void OnChannelClosing() override;
22 bool OnMessageReceived(const IPC::Message& message) override;
23
24 void SendSetPressureNotificationsSuppressed(bool suppressed);
25
26 protected:
27 ~MemoryMessageFilter() override;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MemoryMessageFilter);
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/memory/memory_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698