OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/background_information.h" | 5 #include "chrome/browser/task_manager/background_information.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/background/background_contents_service.h" | 10 #include "chrome/browser/background/background_contents_service.h" |
11 #include "chrome/browser/background/background_contents_service_factory.h" | 11 #include "chrome/browser/background/background_contents_service_factory.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/browser/tab_contents/background_contents.h" | 16 #include "chrome/browser/tab_contents/background_contents.h" |
17 #include "chrome/browser/task_manager/renderer_resource.h" | 17 #include "chrome/browser/task_manager/renderer_resource.h" |
18 #include "chrome/browser/task_manager/resource_provider.h" | 18 #include "chrome/browser/task_manager/resource_provider.h" |
19 #include "chrome/browser/task_manager/task_manager.h" | 19 #include "chrome/browser/task_manager/task_manager.h" |
| 20 #include "chrome/grit/generated_resources.h" |
20 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
21 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
22 #include "content/public/browser/render_process_host.h" | 23 #include "content/public/browser/render_process_host.h" |
23 #include "content/public/browser/render_view_host.h" | 24 #include "content/public/browser/render_view_host.h" |
24 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
25 #include "extensions/browser/extension_registry.h" | 26 #include "extensions/browser/extension_registry.h" |
26 #include "extensions/browser/view_type_utils.h" | 27 #include "extensions/browser/view_type_utils.h" |
27 #include "extensions/common/extension.h" | 28 #include "extensions/common/extension.h" |
28 #include "grit/generated_resources.h" | |
29 #include "grit/theme_resources.h" | 29 #include "grit/theme_resources.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
32 #include "ui/gfx/image/image_skia.h" | 32 #include "ui/gfx/image/image_skia.h" |
33 | 33 |
34 using content::RenderProcessHost; | 34 using content::RenderProcessHost; |
35 using content::RenderViewHost; | 35 using content::RenderViewHost; |
36 using content::WebContents; | 36 using content::WebContents; |
37 using extensions::Extension; | 37 using extensions::Extension; |
38 | 38 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 application_name = base::UTF8ToUTF16(extension->name()); | 164 application_name = base::UTF8ToUTF16(extension->name()); |
165 return scoped_ptr<RendererResource>( | 165 return scoped_ptr<RendererResource>( |
166 new BackgroundContentsResource(*iterator, application_name)); | 166 new BackgroundContentsResource(*iterator, application_name)); |
167 } | 167 } |
168 } | 168 } |
169 NOTREACHED(); | 169 NOTREACHED(); |
170 return scoped_ptr<RendererResource>(); | 170 return scoped_ptr<RendererResource>(); |
171 } | 171 } |
172 | 172 |
173 } // namespace task_manager | 173 } // namespace task_manager |
OLD | NEW |