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/extension_information.h" | 5 #include "chrome/browser/task_manager/extension_information.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 14 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/browser/task_manager/renderer_resource.h" | 15 #include "chrome/browser/task_manager/renderer_resource.h" |
13 #include "chrome/browser/task_manager/task_manager_util.h" | 16 #include "chrome/browser/task_manager/task_manager_util.h" |
14 #include "components/guest_view/browser/guest_view_base.h" | 17 #include "components/guest_view/browser/guest_view_base.h" |
15 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
16 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 const Extension* extension = GetExtensionForWebContents(web_contents); | 164 const Extension* extension = GetExtensionForWebContents(web_contents); |
162 if (!extension) { | 165 if (!extension) { |
163 NOTREACHED(); | 166 NOTREACHED(); |
164 return scoped_ptr<RendererResource>(); | 167 return scoped_ptr<RendererResource>(); |
165 } | 168 } |
166 return scoped_ptr<RendererResource>(new ExtensionProcessResource( | 169 return scoped_ptr<RendererResource>(new ExtensionProcessResource( |
167 extension, web_contents->GetRenderViewHost())); | 170 extension, web_contents->GetRenderViewHost())); |
168 } | 171 } |
169 | 172 |
170 } // namespace task_manager | 173 } // namespace task_manager |
OLD | NEW |