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/guest_information.h" | 5 #include "chrome/browser/task_manager/guest_information.h" |
6 | 6 |
7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/favicon/favicon_tab_helper.h" | 9 #include "chrome/browser/favicon/favicon_tab_helper.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/task_manager/renderer_resource.h" | 11 #include "chrome/browser/task_manager/renderer_resource.h" |
12 #include "chrome/browser/task_manager/resource_provider.h" | 12 #include "chrome/browser/task_manager/resource_provider.h" |
13 #include "chrome/browser/task_manager/task_manager.h" | 13 #include "chrome/browser/task_manager/task_manager.h" |
14 #include "chrome/browser/task_manager/task_manager_util.h" | 14 #include "chrome/browser/task_manager/task_manager_util.h" |
| 15 #include "chrome/grit/generated_resources.h" |
15 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
16 #include "content/public/browser/render_frame_host.h" | 17 #include "content/public/browser/render_frame_host.h" |
17 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
18 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
19 #include "content/public/browser/render_widget_host_iterator.h" | 20 #include "content/public/browser/render_widget_host_iterator.h" |
20 #include "content/public/browser/site_instance.h" | 21 #include "content/public/browser/site_instance.h" |
21 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
22 #include "grit/generated_resources.h" | |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/gfx/image/image.h" | 24 #include "ui/gfx/image/image.h" |
25 #include "ui/gfx/image/image_skia.h" | 25 #include "ui/gfx/image/image_skia.h" |
26 | 26 |
27 using content::RenderProcessHost; | 27 using content::RenderProcessHost; |
28 using content::RenderViewHost; | 28 using content::RenderViewHost; |
29 using content::RenderWidgetHost; | 29 using content::RenderWidgetHost; |
30 using content::WebContents; | 30 using content::WebContents; |
31 using extensions::Extension; | 31 using extensions::Extension; |
32 | 32 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 scoped_ptr<RendererResource> GuestInformation::MakeResource( | 112 scoped_ptr<RendererResource> GuestInformation::MakeResource( |
113 WebContents* web_contents) { | 113 WebContents* web_contents) { |
114 return scoped_ptr<RendererResource>( | 114 return scoped_ptr<RendererResource>( |
115 new GuestResource(web_contents->GetRenderViewHost())); | 115 new GuestResource(web_contents->GetRenderViewHost())); |
116 } | 116 } |
117 | 117 |
118 } // namespace task_manager | 118 } // namespace task_manager |
OLD | NEW |