OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/task_manager/providers/web_contents/renderer_task.h" | 5 #include "chrome/browser/task_manager/providers/web_contents/renderer_task.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/favicon/favicon_utils.h" | 13 #include "chrome/browser/favicon/favicon_utils.h" |
14 #include "chrome/browser/process_resource_usage.h" | 14 #include "chrome/browser/process_resource_usage.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/sessions/session_tab_helper.h" | 16 #include "chrome/browser/sessions/session_tab_helper.h" |
17 #include "chrome/browser/task_manager/task_manager_observer.h" | 17 #include "chrome/browser/task_manager/task_manager_observer.h" |
18 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
19 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
21 #include "content/public/browser/web_contents_delegate.h" | 21 #include "content/public/browser/web_contents_delegate.h" |
22 #include "services/shell/public/cpp/interface_provider.h" | 22 #include "services/service_manager/public/cpp/interface_provider.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 | 24 |
25 namespace task_manager { | 25 namespace task_manager { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Creates the Mojo service wrapper that will be used to sample the V8 memory | 29 // Creates the Mojo service wrapper that will be used to sample the V8 memory |
30 // usage and the the WebCache resource stats of the render process hosted by | 30 // usage and the the WebCache resource stats of the render process hosted by |
31 // |render_process_host|. | 31 // |render_process_host|. |
32 ProcessResourceUsage* CreateRendererResourcesSampler( | 32 ProcessResourceUsage* CreateRendererResourcesSampler( |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 if (is_incognito) | 235 if (is_incognito) |
236 message_id = IDS_TASK_MANAGER_EXTENSION_INCOGNITO_PREFIX; | 236 message_id = IDS_TASK_MANAGER_EXTENSION_INCOGNITO_PREFIX; |
237 else | 237 else |
238 message_id = IDS_TASK_MANAGER_EXTENSION_PREFIX; | 238 message_id = IDS_TASK_MANAGER_EXTENSION_PREFIX; |
239 } | 239 } |
240 | 240 |
241 return l10n_util::GetStringFUTF16(message_id, title); | 241 return l10n_util::GetStringFUTF16(message_id, title); |
242 } | 242 } |
243 | 243 |
244 } // namespace task_manager | 244 } // namespace task_manager |
OLD | NEW |