OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_version_info.h" | 10 #include "base/file_version_info.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "v8/include/v8.h" | 55 #include "v8/include/v8.h" |
56 | 56 |
57 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
58 #include "skia/ext/skia_utils_mac.h" | 58 #include "skia/ext/skia_utils_mac.h" |
59 #endif | 59 #endif |
60 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
61 #include "chrome/browser/app_icon_win.h" | 61 #include "chrome/browser/app_icon_win.h" |
62 #include "ui/gfx/icon_util.h" | 62 #include "ui/gfx/icon_util.h" |
63 #endif // defined(OS_WIN) | 63 #endif // defined(OS_WIN) |
64 | 64 |
| 65 using content::BrowserThread; |
| 66 |
65 namespace { | 67 namespace { |
66 | 68 |
67 // Returns the appropriate message prefix ID for tabs and extensions, | 69 // Returns the appropriate message prefix ID for tabs and extensions, |
68 // reflecting whether they are apps or in incognito mode. | 70 // reflecting whether they are apps or in incognito mode. |
69 int GetMessagePrefixID(bool is_app, bool is_extension, | 71 int GetMessagePrefixID(bool is_app, bool is_extension, |
70 bool is_incognito, bool is_prerender) { | 72 bool is_incognito, bool is_prerender) { |
71 if (is_app) { | 73 if (is_app) { |
72 if (is_incognito) | 74 if (is_incognito) |
73 return IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX; | 75 return IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX; |
74 else | 76 else |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 | 1401 |
1400 return &resource_; | 1402 return &resource_; |
1401 } | 1403 } |
1402 | 1404 |
1403 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 1405 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
1404 task_manager_->AddResource(&resource_); | 1406 task_manager_->AddResource(&resource_); |
1405 } | 1407 } |
1406 | 1408 |
1407 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 1409 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
1408 } | 1410 } |
OLD | NEW |