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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Fix FrameFetchContextTest Created 3 years, 7 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
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index f7360bf6cb93be8d78ffe7b66497474390e0ac11..ba065fafb74b3d35f0296c25f214c42b187dc00e 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -296,6 +296,13 @@ class BLINK_PLATFORM_EXPORT Platform {
// Same as above, but always returns actual value, without any caches.
virtual size_t ActualMemoryUsageMB() { return 0; }
+ // Returns the number of megabytes of physical memory on the current machine.
+ virtual size_t AmountOfPhysicalMemoryMB() { return 0; }
+
+ // Sets the physical memory size in megabytes for testing.
+ virtual void SetDevicePhysicalMemoryMBForTesting(int64_t physical_memory_mb) {
+ }
+
// Return the number of of processors of the current machine.
virtual size_t NumberOfProcessors() { return 0; }

Powered by Google App Engine
This is Rietveld 408576698