| 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/task_manager_resource_providers.h" | 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "skia/ext/skia_utils_mac.h" | 64 #include "skia/ext/skia_utils_mac.h" |
| 65 #endif | 65 #endif |
| 66 #if defined(OS_WIN) | 66 #if defined(OS_WIN) |
| 67 #include "chrome/browser/app_icon_win.h" | 67 #include "chrome/browser/app_icon_win.h" |
| 68 #include "ui/gfx/icon_util.h" | 68 #include "ui/gfx/icon_util.h" |
| 69 #endif // defined(OS_WIN) | 69 #endif // defined(OS_WIN) |
| 70 | 70 |
| 71 using content::BrowserChildProcessHostIterator; | 71 using content::BrowserChildProcessHostIterator; |
| 72 using content::BrowserThread; | 72 using content::BrowserThread; |
| 73 using content::WebContents; | 73 using content::WebContents; |
| 74 using extensions::Extension; |
| 74 | 75 |
| 75 namespace { | 76 namespace { |
| 76 | 77 |
| 77 // Returns the appropriate message prefix ID for tabs and extensions, | 78 // Returns the appropriate message prefix ID for tabs and extensions, |
| 78 // reflecting whether they are apps or in incognito mode. | 79 // reflecting whether they are apps or in incognito mode. |
| 79 int GetMessagePrefixID(bool is_app, | 80 int GetMessagePrefixID(bool is_app, |
| 80 bool is_extension, | 81 bool is_extension, |
| 81 bool is_incognito, | 82 bool is_incognito, |
| 82 bool is_prerender, | 83 bool is_prerender, |
| 83 bool is_instant_preview) { | 84 bool is_instant_preview) { |
| (...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 | 1501 |
| 1501 return &resource_; | 1502 return &resource_; |
| 1502 } | 1503 } |
| 1503 | 1504 |
| 1504 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 1505 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
| 1505 task_manager_->AddResource(&resource_); | 1506 task_manager_->AddResource(&resource_); |
| 1506 } | 1507 } |
| 1507 | 1508 |
| 1508 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 1509 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
| 1509 } | 1510 } |
| OLD | NEW |