OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |