Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: chrome/browser/task_manager_resource_providers.cc

Issue 1822: Task Manager Double Click (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/task_manager_resource_providers.h ('k') | chrome/views/group_table_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_resource_providers.h" 5 #include "chrome/browser/task_manager_resource_providers.h"
6 6
7 #include "base/file_version_info.h" 7 #include "base/file_version_info.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 SkBitmap TaskManagerWebContentsResource::GetIcon() const { 57 SkBitmap TaskManagerWebContentsResource::GetIcon() const {
58 return web_contents_->GetFavIcon(); 58 return web_contents_->GetFavIcon();
59 } 59 }
60 60
61 HANDLE TaskManagerWebContentsResource::GetProcess() const { 61 HANDLE TaskManagerWebContentsResource::GetProcess() const {
62 return process_; 62 return process_;
63 } 63 }
64 64
65 TabContents* TaskManagerWebContentsResource::GetTabContents() const {
66 return dynamic_cast<TabContents*>(web_contents_);
67 }
68
65 //////////////////////////////////////////////////////////////////////////////// 69 ////////////////////////////////////////////////////////////////////////////////
66 // TaskManagerWebContentsResourceProvider class 70 // TaskManagerWebContentsResourceProvider class
67 //////////////////////////////////////////////////////////////////////////////// 71 ////////////////////////////////////////////////////////////////////////////////
68 72
69 TaskManagerWebContentsResourceProvider:: 73 TaskManagerWebContentsResourceProvider::
70 TaskManagerWebContentsResourceProvider(TaskManager* task_manager) 74 TaskManagerWebContentsResourceProvider(TaskManager* task_manager)
71 : task_manager_(task_manager), 75 : task_manager_(task_manager),
72 updating_(false) { 76 updating_(false) {
73 } 77 }
74 78
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 502 }
499 503
500 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { 504 void TaskManagerBrowserProcessResourceProvider::StartUpdating() {
501 task_manager_->AddResource(&resource_); 505 task_manager_->AddResource(&resource_);
502 } 506 }
503 507
504 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { 508 void TaskManagerBrowserProcessResourceProvider::StopUpdating() {
505 } 509 }
506 510
507 511
OLDNEW
« no previous file with comments | « chrome/browser/task_manager_resource_providers.h ('k') | chrome/views/group_table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698