| Index: chrome/browser/task_manager/task_manager_tab_contents_resource_provider.h
|
| diff --git a/chrome/browser/task_manager/task_manager_tab_contents_resource_provider.h b/chrome/browser/task_manager/task_manager_tab_contents_resource_provider.h
|
| deleted file mode 100644
|
| index e550ece7d907f49059f9a04377f55d2e54746231..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/task_manager/task_manager_tab_contents_resource_provider.h
|
| +++ /dev/null
|
| @@ -1,101 +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_TASK_MANAGER_TAB_CONTENTS_RESOURCE_PROVIDER_H_
|
| -#define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_TAB_CONTENTS_RESOURCE_PROVIDER_H_
|
| -
|
| -#include <map>
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "base/string16.h"
|
| -#include "chrome/browser/task_manager/task_manager_render_resource.h"
|
| -#include "content/public/browser/notification_observer.h"
|
| -#include "content/public/browser/notification_registrar.h"
|
| -#include "ui/gfx/image/image_skia.h"
|
| -
|
| -class Profile;
|
| -class TaskManager;
|
| -
|
| -namespace content {
|
| -class WebContents;
|
| -class NotificationSource;
|
| -class NotificationDetails;
|
| -}
|
| -
|
| -// Tracks a single tab contents, prerendered page, Instant page, or background
|
| -// printing page.
|
| -class TaskManagerTabContentsResource : public TaskManagerRendererResource {
|
| - public:
|
| - explicit TaskManagerTabContentsResource(content::WebContents* web_contents);
|
| - virtual ~TaskManagerTabContentsResource();
|
| -
|
| - // Called when the underlying web_contents has been committed and is no
|
| - // longer an Instant overlay.
|
| - void InstantCommitted();
|
| -
|
| - // TaskManager::Resource methods:
|
| - virtual Type GetType() const OVERRIDE;
|
| - virtual string16 GetTitle() const OVERRIDE;
|
| - virtual string16 GetProfileName() const OVERRIDE;
|
| - virtual gfx::ImageSkia GetIcon() const OVERRIDE;
|
| - virtual content::WebContents* GetWebContents() const OVERRIDE;
|
| - virtual const extensions::Extension* GetExtension() const OVERRIDE;
|
| -
|
| - private:
|
| - // Returns true if contains content rendered by an extension.
|
| - bool HostsExtension() const;
|
| -
|
| - static gfx::ImageSkia* prerender_icon_;
|
| - content::WebContents* web_contents_;
|
| - Profile* profile_;
|
| - bool is_instant_overlay_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(TaskManagerTabContentsResource);
|
| -};
|
| -
|
| -// Provides resources for tab contents, prerendered pages, Instant pages, and
|
| -// background printing pages.
|
| -class TaskManagerTabContentsResourceProvider
|
| - : public TaskManager::ResourceProvider,
|
| - public content::NotificationObserver {
|
| - public:
|
| - explicit TaskManagerTabContentsResourceProvider(TaskManager* task_manager);
|
| -
|
| - virtual TaskManager::Resource* GetResource(int origin_pid,
|
| - int render_process_host_id,
|
| - int routing_id) OVERRIDE;
|
| - virtual void StartUpdating() OVERRIDE;
|
| - virtual void StopUpdating() OVERRIDE;
|
| -
|
| - // content::NotificationObserver method:
|
| - virtual void Observe(int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) OVERRIDE;
|
| -
|
| - private:
|
| - virtual ~TaskManagerTabContentsResourceProvider();
|
| -
|
| - void Add(content::WebContents* web_contents);
|
| - void Remove(content::WebContents* web_contents);
|
| - void InstantCommitted(content::WebContents* web_contents);
|
| -
|
| - void AddToTaskManager(content::WebContents* web_contents);
|
| -
|
| - // Whether we are currently reporting to the task manager. Used to ignore
|
| - // notifications sent after StopUpdating().
|
| - bool updating_;
|
| -
|
| - TaskManager* task_manager_;
|
| -
|
| - // Maps the actual resources (the WebContentses) to the Task Manager
|
| - // resources.
|
| - std::map<content::WebContents*, TaskManagerTabContentsResource*> resources_;
|
| -
|
| - // A scoped container for notification registries.
|
| - content::NotificationRegistrar registrar_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(TaskManagerTabContentsResourceProvider);
|
| -};
|
| -
|
| -#endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_TAB_CONTENTS_RESOURCE_PROVIDER_H_
|
|
|