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

Unified Diff: chrome/browser/task_manager/notification_resource_provider.h

Issue 231723006: Remove balloon notification code. The last user was the Linux GTK port but that's deleted now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync after elliot's r263101 Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_manager/notification_resource_provider.h
===================================================================
--- chrome/browser/task_manager/notification_resource_provider.h (revision 263121)
+++ chrome/browser/task_manager/notification_resource_provider.h (working copy)
@@ -1,62 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_TASK_MANAGER_NOTIFICATION_RESOURCE_PROVIDER_H_
-#define CHROME_BROWSER_TASK_MANAGER_NOTIFICATION_RESOURCE_PROVIDER_H_
-
-#include <map>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "chrome/browser/task_manager/resource_provider.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
-
-class BalloonHost;
-class TaskManager;
-
-namespace task_manager {
-
-class NotificationResource;
-
-class NotificationResourceProvider : public ResourceProvider,
- public content::NotificationObserver {
- public:
- static NotificationResourceProvider* Create(TaskManager* task_manager);
-
- // ResourceProvider interface
- virtual Resource* GetResource(int origin_pid,
- int child_id,
- int route_id) OVERRIDE;
- virtual void StartUpdating() OVERRIDE;
- virtual void StopUpdating() OVERRIDE;
-
- // content::NotificationObserver interface
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- private:
- explicit NotificationResourceProvider(TaskManager* task_manager);
- virtual ~NotificationResourceProvider();
-
- void AddToTaskManager(BalloonHost* balloon_host);
- void RemoveFromTaskManager(BalloonHost* balloon_host);
-
- TaskManager* task_manager_;
-
- // Maps the actual resources (BalloonHost*) to the Task Manager resources.
- std::map<BalloonHost*, NotificationResource*> resources_;
-
- // A scoped container for notification registries.
- content::NotificationRegistrar registrar_;
-
- bool updating_;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationResourceProvider);
-};
-
-} // namespace task_manager
-
-#endif // CHROME_BROWSER_TASK_MANAGER_NOTIFICATION_RESOURCE_PROVIDER_H_
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/task_manager/notification_resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698