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

Side by Side 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, 10 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
OLDNEW
(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_
OLDNEW
« 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