OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/browser_thread.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class CONTENT_EXPORT ProcessResource |
| 15 : public base::RefCountedThreadSafe< |
| 16 ProcessResource, BrowserThread::DeleteOnIOThread> { |
| 17 public: |
| 18 virtual void Refresh() = 0; |
| 19 |
| 20 virtual bool ReportsV8MemoryStats() const = 0; |
| 21 virtual size_t GetV8MemoryAllocated() const = 0; |
| 22 virtual size_t GetV8MemoryUsed() const = 0; |
| 23 |
| 24 protected: |
| 25 friend struct content::BrowserThread::DeleteOnThread< |
| 26 content::BrowserThread::IO>; |
| 27 friend class base::DeleteHelper<ProcessResource>; |
| 28 virtual ~ProcessResource() {} |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_H_ |
OLD | NEW |