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

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

Issue 442303002: DevTools: migrate DevTools APIs to use WebContents instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RESOURCE_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_
6 #define CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/task_manager/resource_provider.h" 9 #include "chrome/browser/task_manager/resource_provider.h"
10 10
(...skipping 18 matching lines...) Expand all
29 virtual Type GetType() const OVERRIDE; 29 virtual Type GetType() const OVERRIDE;
30 virtual int GetRoutingID() const OVERRIDE; 30 virtual int GetRoutingID() const OVERRIDE;
31 31
32 virtual bool ReportsCacheStats() const OVERRIDE; 32 virtual bool ReportsCacheStats() const OVERRIDE;
33 virtual blink::WebCache::ResourceTypeStats GetWebCoreCacheStats() const 33 virtual blink::WebCache::ResourceTypeStats GetWebCoreCacheStats() const
34 OVERRIDE; 34 OVERRIDE;
35 virtual bool ReportsV8MemoryStats() const OVERRIDE; 35 virtual bool ReportsV8MemoryStats() const OVERRIDE;
36 virtual size_t GetV8MemoryAllocated() const OVERRIDE; 36 virtual size_t GetV8MemoryAllocated() const OVERRIDE;
37 virtual size_t GetV8MemoryUsed() const OVERRIDE; 37 virtual size_t GetV8MemoryUsed() const OVERRIDE;
38 38
39 // RenderResources are always inspectable.
40 virtual bool CanInspect() const OVERRIDE;
41 virtual void Inspect() const OVERRIDE;
42
43 // RenderResources always provide the network usage. 39 // RenderResources always provide the network usage.
44 virtual bool SupportNetworkUsage() const OVERRIDE; 40 virtual bool SupportNetworkUsage() const OVERRIDE;
45 virtual void SetSupportNetworkUsage() OVERRIDE { } 41 virtual void SetSupportNetworkUsage() OVERRIDE { }
46 42
47 virtual void Refresh() OVERRIDE; 43 virtual void Refresh() OVERRIDE;
48 44
49 virtual void NotifyResourceTypeStats( 45 virtual void NotifyResourceTypeStats(
50 const blink::WebCache::ResourceTypeStats& stats) OVERRIDE; 46 const blink::WebCache::ResourceTypeStats& stats) OVERRIDE;
51 47
52 virtual void NotifyV8HeapStats(size_t v8_memory_allocated, 48 virtual void NotifyV8HeapStats(size_t v8_memory_allocated,
(...skipping 20 matching lines...) Expand all
73 size_t v8_memory_allocated_; 69 size_t v8_memory_allocated_;
74 size_t v8_memory_used_; 70 size_t v8_memory_used_;
75 bool pending_v8_memory_allocated_update_; 71 bool pending_v8_memory_allocated_update_;
76 72
77 DISALLOW_COPY_AND_ASSIGN(RendererResource); 73 DISALLOW_COPY_AND_ASSIGN(RendererResource);
78 }; 74 };
79 75
80 } // namespace task_manager 76 } // namespace task_manager
81 77
82 #endif // CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ 78 #endif // CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698