| Index: chrome/browser/task_manager/task_manager_render_resource.h
|
| diff --git a/chrome/browser/task_manager/task_manager_render_resource.h b/chrome/browser/task_manager/task_manager_render_resource.h
|
| deleted file mode 100644
|
| index 035811a7154e1e0ba85af0aad96d9187b9f8d625..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/task_manager/task_manager_render_resource.h
|
| +++ /dev/null
|
| @@ -1,92 +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_RENDER_RESOURCE_H_
|
| -#define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RENDER_RESOURCE_H_
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "chrome/browser/task_manager/task_manager.h"
|
| -#include "content/public/browser/render_view_host_observer.h"
|
| -
|
| -namespace content {
|
| -class RenderViewHost;
|
| -}
|
| -
|
| -// Base class for various types of render process resources that provides common
|
| -// functionality like stats tracking.
|
| -class TaskManagerRendererResource : public TaskManager::Resource,
|
| - public content::RenderViewHostObserver {
|
| - public:
|
| - TaskManagerRendererResource(base::ProcessHandle process,
|
| - content::RenderViewHost* render_view_host);
|
| - virtual ~TaskManagerRendererResource();
|
| -
|
| - // TaskManager::Resource methods:
|
| - virtual base::ProcessHandle GetProcess() const OVERRIDE;
|
| - virtual int GetUniqueChildProcessId() const OVERRIDE;
|
| - virtual Type GetType() const OVERRIDE;
|
| - virtual int GetRoutingID() const OVERRIDE;
|
| -
|
| - virtual bool ReportsCacheStats() const OVERRIDE;
|
| - virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const
|
| - OVERRIDE;
|
| - virtual bool ReportsFPS() const OVERRIDE;
|
| - virtual float GetFPS() const OVERRIDE;
|
| - virtual bool ReportsV8MemoryStats() const OVERRIDE;
|
| - virtual size_t GetV8MemoryAllocated() const OVERRIDE;
|
| - virtual size_t GetV8MemoryUsed() const OVERRIDE;
|
| -
|
| - // RenderResources are always inspectable.
|
| - virtual bool CanInspect() const OVERRIDE;
|
| - virtual void Inspect() const OVERRIDE;
|
| -
|
| - // RenderResources always provide the network usage.
|
| - virtual bool SupportNetworkUsage() const OVERRIDE;
|
| - virtual void SetSupportNetworkUsage() OVERRIDE { }
|
| -
|
| - virtual void Refresh() OVERRIDE;
|
| -
|
| - virtual void NotifyResourceTypeStats(
|
| - const WebKit::WebCache::ResourceTypeStats& stats) OVERRIDE;
|
| -
|
| - virtual void NotifyFPS(float fps) OVERRIDE;
|
| -
|
| - virtual void NotifyV8HeapStats(size_t v8_memory_allocated,
|
| - size_t v8_memory_used) OVERRIDE;
|
| -
|
| - // content::RenderViewHostObserver implementation.
|
| - virtual void RenderViewHostDestroyed(
|
| - content::RenderViewHost* render_view_host) OVERRIDE;
|
| -
|
| - content::RenderViewHost* render_view_host() const {
|
| - return render_view_host_;
|
| - }
|
| -
|
| - private:
|
| - base::ProcessHandle process_;
|
| - int pid_;
|
| - int unique_process_id_;
|
| -
|
| - // RenderViewHost we use to fetch stats.
|
| - content::RenderViewHost* render_view_host_;
|
| - // The stats_ field holds information about resource usage in the renderer
|
| - // process and so it is updated asynchronously by the Refresh() call.
|
| - WebKit::WebCache::ResourceTypeStats stats_;
|
| - // This flag is true if we are waiting for the renderer to report its stats.
|
| - bool pending_stats_update_;
|
| -
|
| - // The fps_ field holds the renderer frames per second.
|
| - float fps_;
|
| - // This flag is true if we are waiting for the renderer to report its FPS.
|
| - bool pending_fps_update_;
|
| -
|
| - // We do a similar dance to gather the V8 memory usage in a process.
|
| - size_t v8_memory_allocated_;
|
| - size_t v8_memory_used_;
|
| - bool pending_v8_memory_allocated_update_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(TaskManagerRendererResource);
|
| -};
|
| -
|
| -#endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RENDER_RESOURCE_H_
|
|
|