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

Unified Diff: content/public/browser/process_resource.h

Issue 862813002: WIP: Prototype OOP V8 PAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight cleanup and report JS memory usage. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/child_process_data.cc ('k') | content/public/browser/utility_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/public/browser/child_process_data.cc ('k') | content/public/browser/utility_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698