| 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 #include "chrome/browser/ui/webui/memory_internals/memory_internals_proxy.h" | 5 #include "chrome/browser/ui/webui/memory_internals/memory_internals_proxy.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/memory_details.h" | 22 #include "chrome/browser/memory_details.h" |
| 23 #include "chrome/browser/prerender/prerender_manager.h" | 23 #include "chrome/browser/prerender/prerender_manager.h" |
| 24 #include "chrome/browser/prerender/prerender_manager_factory.h" | 24 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 25 #include "chrome/browser/process_resource_usage.h" | 25 #include "chrome/browser/process_resource_usage.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/profiles/profile_manager.h" | 27 #include "chrome/browser/profiles/profile_manager.h" |
| 28 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 28 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 29 #include "chrome/browser/ui/android/tab_model/tab_model.h" | 29 #include "chrome/browser/ui/android/tab_model/tab_model.h" |
| 30 #include "chrome/browser/ui/android/tab_model/tab_model_list.h" | 30 #include "chrome/browser/ui/android/tab_model/tab_model_list.h" |
| 31 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
| 32 #include "chrome/browser/ui/browser_iterator.h" | |
| 33 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" | 32 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" |
| 34 #include "chrome/browser/ui/webui/memory_internals/memory_internals_handler.h" | 33 #include "chrome/browser/ui/webui/memory_internals/memory_internals_handler.h" |
| 35 #include "chrome/common/features.h" | 34 #include "chrome/common/features.h" |
| 36 #include "content/public/browser/navigation_controller.h" | 35 #include "content/public/browser/navigation_controller.h" |
| 37 #include "content/public/browser/navigation_entry.h" | 36 #include "content/public/browser/navigation_entry.h" |
| 38 #include "content/public/browser/render_process_host.h" | 37 #include "content/public/browser/render_process_host.h" |
| 39 #include "content/public/browser/render_view_host.h" | 38 #include "content/public/browser/render_view_host.h" |
| 40 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
| 41 #include "content/public/browser/web_ui.h" | 40 #include "content/public/browser/web_ui.h" |
| 42 #include "content/public/common/service_registry.h" | 41 #include "content/public/common/service_registry.h" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 const std::string& function, const base::Value& args) { | 362 const std::string& function, const base::Value& args) { |
| 364 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 363 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 365 | 364 |
| 366 std::vector<const base::Value*> args_vector(1, &args); | 365 std::vector<const base::Value*> args_vector(1, &args); |
| 367 base::string16 update = | 366 base::string16 update = |
| 368 content::WebUI::GetJavascriptCall(function, args_vector); | 367 content::WebUI::GetJavascriptCall(function, args_vector); |
| 369 // Don't forward updates to a destructed UI. | 368 // Don't forward updates to a destructed UI. |
| 370 if (handler_) | 369 if (handler_) |
| 371 handler_->OnUpdate(update); | 370 handler_->OnUpdate(update); |
| 372 } | 371 } |
| OLD | NEW |