OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 7 #include "build/build_config.h" |
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 29 matching lines...) Expand all Loading... |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "grit/theme_resources.h" | 41 #include "grit/theme_resources.h" |
42 #include "ui/base/l10n/l10n_util.h" | 42 #include "ui/base/l10n/l10n_util.h" |
43 #include "ui/base/resource/resource_bundle.h" | 43 #include "ui/base/resource/resource_bundle.h" |
44 | 44 |
45 #if defined(OS_MACOSX) | 45 #if defined(OS_MACOSX) |
46 #include "skia/ext/skia_utils_mac.h" | 46 #include "skia/ext/skia_utils_mac.h" |
47 #endif | 47 #endif |
48 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
49 #include "chrome/browser/app_icon_win.h" | 49 #include "chrome/browser/app_icon_win.h" |
50 #include "gfx/icon_util.h" | 50 #include "ui/gfx/icon_util.h" |
51 #endif // defined(OS_WIN) | 51 #endif // defined(OS_WIN) |
52 | 52 |
53 namespace { | 53 namespace { |
54 | 54 |
55 // Returns the appropriate message prefix ID for tabs and extensions, | 55 // Returns the appropriate message prefix ID for tabs and extensions, |
56 // reflecting whether they are apps or in incognito mode. | 56 // reflecting whether they are apps or in incognito mode. |
57 int GetMessagePrefixID(bool is_app, bool is_extension, | 57 int GetMessagePrefixID(bool is_app, bool is_extension, |
58 bool is_off_the_record) { | 58 bool is_off_the_record) { |
59 return is_app ? | 59 return is_app ? |
60 (is_off_the_record ? | 60 (is_off_the_record ? |
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 | 1322 |
1323 return &resource_; | 1323 return &resource_; |
1324 } | 1324 } |
1325 | 1325 |
1326 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 1326 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
1327 task_manager_->AddResource(&resource_); | 1327 task_manager_->AddResource(&resource_); |
1328 } | 1328 } |
1329 | 1329 |
1330 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 1330 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
1331 } | 1331 } |
OLD | NEW |