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

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

Issue 10824030: Move ExtensionHost into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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
OLDNEW
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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 int type, 1483 int type,
1484 const content::NotificationSource& source, 1484 const content::NotificationSource& source,
1485 const content::NotificationDetails& details) { 1485 const content::NotificationDetails& details) {
1486 switch (type) { 1486 switch (type) {
1487 case chrome::NOTIFICATION_EXTENSION_VIEW_REGISTERED: 1487 case chrome::NOTIFICATION_EXTENSION_VIEW_REGISTERED:
1488 AddToTaskManager( 1488 AddToTaskManager(
1489 content::Details<content::RenderViewHost>(details).ptr()); 1489 content::Details<content::RenderViewHost>(details).ptr());
1490 break; 1490 break;
1491 case chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED: 1491 case chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED:
1492 RemoveFromTaskManager( 1492 RemoveFromTaskManager(
1493 content::Details<ExtensionHost>(details).ptr()->render_view_host()); 1493 content::Details<extensions::ExtensionHost>(details).ptr()->
1494 render_view_host());
1494 break; 1495 break;
1495 case chrome::NOTIFICATION_EXTENSION_VIEW_UNREGISTERED: 1496 case chrome::NOTIFICATION_EXTENSION_VIEW_UNREGISTERED:
1496 RemoveFromTaskManager( 1497 RemoveFromTaskManager(
1497 content::Details<content::RenderViewHost>(details).ptr()); 1498 content::Details<content::RenderViewHost>(details).ptr());
1498 break; 1499 break;
1499 default: 1500 default:
1500 NOTREACHED() << "Unexpected notification."; 1501 NOTREACHED() << "Unexpected notification.";
1501 return; 1502 return;
1502 } 1503 }
1503 } 1504 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 1691
1691 return &resource_; 1692 return &resource_;
1692 } 1693 }
1693 1694
1694 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { 1695 void TaskManagerBrowserProcessResourceProvider::StartUpdating() {
1695 task_manager_->AddResource(&resource_); 1696 task_manager_->AddResource(&resource_);
1696 } 1697 }
1697 1698
1698 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { 1699 void TaskManagerBrowserProcessResourceProvider::StopUpdating() {
1699 } 1700 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698