OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/worker_resource_provider.h" | 5 #include "chrome/browser/task_manager/worker_resource_provider.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/devtools/devtools_window.h" | 12 #include "chrome/browser/devtools/devtools_window.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/browser/task_manager/resource_provider.h" | 14 #include "chrome/browser/task_manager/resource_provider.h" |
15 #include "chrome/browser/task_manager/task_manager.h" | 15 #include "chrome/browser/task_manager/task_manager.h" |
16 #include "chrome/common/chrome_process_type.h" | 16 #include "chrome/common/chrome_process_type.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/child_process_data.h" | 18 #include "content/public/browser/child_process_data.h" |
19 #include "content/public/browser/devtools_agent_host.h" | 19 #include "content/public/browser/devtools_agent_host.h" |
20 #include "content/public/browser/worker_service.h" | 20 #include "content/public/browser/worker_service.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 } else { | 350 } else { |
351 task_manager_->AddResource(resource); | 351 task_manager_->AddResource(resource); |
352 } | 352 } |
353 } | 353 } |
354 | 354 |
355 void WorkerResourceProvider::DeleteAllResources() { | 355 void WorkerResourceProvider::DeleteAllResources() { |
356 STLDeleteElements(&resources_); | 356 STLDeleteElements(&resources_); |
357 } | 357 } |
358 | 358 |
359 } // namespace task_manager | 359 } // namespace task_manager |
OLD | NEW |