Index: content/public/browser/process_resource.h |
diff --git a/content/public/browser/process_resource.h b/content/public/browser/process_resource.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13dc4af38953a851550b8fea54717b7af3b82c3a |
--- /dev/null |
+++ b/content/public/browser/process_resource.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2015 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 CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_H_ |
+#define CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "content/common/content_export.h" |
+#include "content/public/browser/browser_thread.h" |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT ProcessResource |
+ : public base::RefCountedThreadSafe< |
+ ProcessResource, BrowserThread::DeleteOnIOThread> { |
+ public: |
+ virtual void Refresh() = 0; |
+ |
+ virtual bool ReportsV8MemoryStats() const = 0; |
+ virtual size_t GetV8MemoryAllocated() const = 0; |
+ virtual size_t GetV8MemoryUsed() const = 0; |
+ |
+ protected: |
+ friend struct content::BrowserThread::DeleteOnThread< |
+ content::BrowserThread::IO>; |
+ friend class base::DeleteHelper<ProcessResource>; |
+ virtual ~ProcessResource() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_H_ |