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

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

Issue 102073008: Allow multiple NaCl modules to be debugged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 7 years 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_RESOURCE_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual bool ReportsSqliteMemoryUsed() const; 73 virtual bool ReportsSqliteMemoryUsed() const;
74 virtual size_t SqliteMemoryUsedBytes() const; 74 virtual size_t SqliteMemoryUsedBytes() const;
75 75
76 // Return extension associated with the resource, or NULL if not applicable. 76 // Return extension associated with the resource, or NULL if not applicable.
77 virtual const extensions::Extension* GetExtension() const; 77 virtual const extensions::Extension* GetExtension() const;
78 78
79 virtual bool ReportsV8MemoryStats() const; 79 virtual bool ReportsV8MemoryStats() const;
80 virtual size_t GetV8MemoryAllocated() const; 80 virtual size_t GetV8MemoryAllocated() const;
81 virtual size_t GetV8MemoryUsed() const; 81 virtual size_t GetV8MemoryUsed() const;
82 82
83 virtual int GetNaClDebugStubPort() const;
84
83 // Returns true if this resource can be inspected using developer tools. 85 // Returns true if this resource can be inspected using developer tools.
84 virtual bool CanInspect() const; 86 virtual bool CanInspect() const;
85 87
86 // Invokes or reveals developer tools window for this resource. 88 // Invokes or reveals developer tools window for this resource.
87 virtual void Inspect() const {} 89 virtual void Inspect() const {}
88 90
89 // A helper function for ActivateProcess when selected resource refers 91 // A helper function for ActivateProcess when selected resource refers
90 // to a Tab or other window containing web contents. Returns NULL by 92 // to a Tab or other window containing web contents. Returns NULL by
91 // default because not all resources have an associated web contents. 93 // default because not all resources have an associated web contents.
92 virtual content::WebContents* GetWebContents() const; 94 virtual content::WebContents* GetWebContents() const;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 167
166 protected: 168 protected:
167 friend class base::RefCountedThreadSafe<ResourceProvider>; 169 friend class base::RefCountedThreadSafe<ResourceProvider>;
168 170
169 virtual ~ResourceProvider() {} 171 virtual ~ResourceProvider() {}
170 }; 172 };
171 173
172 } // namespace task_manager 174 } // namespace task_manager
173 175
174 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ 176 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698