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

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

Issue 10119003: Pull shell window stuff out of ExtensionHost and put in ShellWindow (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Mac shell window Created 8 years, 8 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 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 virtual void StopUpdating() OVERRIDE; 395 virtual void StopUpdating() OVERRIDE;
396 396
397 // content::NotificationObserver method: 397 // content::NotificationObserver method:
398 virtual void Observe(int type, 398 virtual void Observe(int type,
399 const content::NotificationSource& source, 399 const content::NotificationSource& source,
400 const content::NotificationDetails& details) OVERRIDE; 400 const content::NotificationDetails& details) OVERRIDE;
401 401
402 private: 402 private:
403 virtual ~TaskManagerExtensionProcessResourceProvider(); 403 virtual ~TaskManagerExtensionProcessResourceProvider();
404 404
405 bool IsHandledByThisProvider(content::RenderViewHost* render_view_host);
405 void AddToTaskManager(content::RenderViewHost* render_view_host); 406 void AddToTaskManager(content::RenderViewHost* render_view_host);
406 void RemoveFromTaskManager(content::RenderViewHost* render_view_host); 407 void RemoveFromTaskManager(content::RenderViewHost* render_view_host);
407 408
408 TaskManager* task_manager_; 409 TaskManager* task_manager_;
409 410
410 // Maps the actual resources (content::RenderViewHost*) to the Task Manager 411 // Maps the actual resources (content::RenderViewHost*) to the Task Manager
411 // resources. 412 // resources.
412 std::map<content::RenderViewHost*, 413 std::map<content::RenderViewHost*,
413 TaskManagerExtensionProcessResource*> resources_; 414 TaskManagerExtensionProcessResource*> resources_;
414 415
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 private: 548 private:
548 virtual ~TaskManagerBrowserProcessResourceProvider(); 549 virtual ~TaskManagerBrowserProcessResourceProvider();
549 550
550 TaskManager* task_manager_; 551 TaskManager* task_manager_;
551 TaskManagerBrowserProcessResource resource_; 552 TaskManagerBrowserProcessResource resource_;
552 553
553 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); 554 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider);
554 }; 555 };
555 556
556 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ 557 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698