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

Side by Side Diff: chrome/browser/ui/webui/memory_internals/memory_internals_handler.h

Issue 1722493002: Project Eraser: Kill chrome://memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chrome_browser_ui.gypi. Created 4 years, 9 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 2013 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 CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_HANDLER_H_
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "content/public/browser/web_ui_message_handler.h"
14
15 namespace base {
16 class ListValue;
17 }
18
19 class MemoryInternalsProxy;
20
21 // This class handles messages to and from MemoryInternalsUI.
22 // It does all its work on the IO thread through the proxy below.
23 class MemoryInternalsHandler : public content::WebUIMessageHandler {
24 public:
25 MemoryInternalsHandler();
26 ~MemoryInternalsHandler() override;
27
28 void RegisterMessages() override;
29
30 // JavaScript message handlers.
31 void OnJSUpdate(const base::ListValue* list);
32
33 // MemoryInternals message handlers.
34 void OnUpdate(const base::string16& update);
35
36 private:
37 scoped_refptr<MemoryInternalsProxy> proxy_;
38
39 DISALLOW_COPY_AND_ASSIGN(MemoryInternalsHandler);
40 };
41
42 #endif // CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/memory_internals/OWNERS ('k') | chrome/browser/ui/webui/memory_internals/memory_internals_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698