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

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

Issue 1081323003: Convert renderer JS memory usage reporting to use Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@utility-process-report-js-memory
Patch Set: Rebase and fix tests. Created 5 years, 7 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_PROXY_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_PROXY_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_PROXY_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_PROXY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "chrome/browser/memory_details.h" 15 #include "chrome/browser/memory_details.h"
15 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
16 17
17 class MemoryInternalsHandler; 18 class MemoryInternalsHandler;
18 class RendererDetails; 19 class RendererDetails;
19 20
20 namespace base { 21 namespace base {
21 class DictionaryValue; 22 class DictionaryValue;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 72
72 // Be called on finish of collection. 73 // Be called on finish of collection.
73 void FinishCollection(); 74 void FinishCollection();
74 75
75 // Calls a JavaScript function on a UI page. 76 // Calls a JavaScript function on a UI page.
76 void CallJavaScriptFunctionOnUIThread(const std::string& function, 77 void CallJavaScriptFunctionOnUIThread(const std::string& function,
77 const base::Value& args); 78 const base::Value& args);
78 79
79 MemoryInternalsHandler* handler_; 80 MemoryInternalsHandler* handler_;
80 base::DictionaryValue* information_; 81 base::DictionaryValue* information_;
81 RendererDetails* renderer_details_; 82 scoped_ptr<RendererDetails> renderer_details_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(MemoryInternalsProxy); 84 DISALLOW_COPY_AND_ASSIGN(MemoryInternalsProxy);
84 }; 85 };
85 86
86 #endif // CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_PROXY_H_ 87 #endif // CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698