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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 1671383003: [Onion Soup] Remove dead memory usage code in BlinkPlatformImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // Handle the <keygen> tag for generating client certificates 252 // Handle the <keygen> tag for generating client certificates
253 // Returns a base64 encoded signed copy of a public key from a newly 253 // Returns a base64 encoded signed copy of a public key from a newly
254 // generated key pair and the supplied challenge string. keySizeindex 254 // generated key pair and the supplied challenge string. keySizeindex
255 // specifies the strength of the key. 255 // specifies the strength of the key.
256 virtual WebString signedPublicKeyAndChallengeString( 256 virtual WebString signedPublicKeyAndChallengeString(
257 unsigned keySizeIndex, const WebString& challenge, const WebURL& url, co nst WebURL& topOrigin) 257 unsigned keySizeIndex, const WebString& challenge, const WebURL& url, co nst WebURL& topOrigin)
258 { 258 {
259 return WebString(); 259 return WebString();
260 } 260 }
261 261
262 // Memory --------------------------------------------------------------
263
264 // Returns the current space allocated for the pagefile, in MB.
265 // That is committed size for Windows and virtual memory size for POSIX
266 virtual size_t memoryUsageMB() { return 0; }
267
268 // Same as above, but always returns actual value, without any caches. 262 // Same as above, but always returns actual value, without any caches.
269 virtual size_t actualMemoryUsageMB() { return 0; } 263 virtual size_t actualMemoryUsageMB() { return 0; }
270 264
271 // Return the physical memory of the current machine, in MB.
272 virtual size_t physicalMemoryMB() { return 0; }
273
274 // Return the available virtual memory of the current machine, in MB. Or
275 // zero, if there is no limit.
276 virtual size_t virtualMemoryLimitMB() { return 0; }
277
278 // Return the number of of processors of the current machine. 265 // Return the number of of processors of the current machine.
279 virtual size_t numberOfProcessors() { return 0; } 266 virtual size_t numberOfProcessors() { return 0; }
280 267
281 // Allocates discardable memory. May return nullptr, even if the platform su pports 268 // Allocates discardable memory. May return nullptr, even if the platform su pports
282 // discardable memory. If nonzero, however, then the WebDiscardableMmeory is 269 // discardable memory. If nonzero, however, then the WebDiscardableMmeory is
283 // returned in an locked state. You may use its underlying data() member 270 // returned in an locked state. You may use its underlying data() member
284 // directly, taking care to unlock it when you are ready to let it become 271 // directly, taking care to unlock it when you are ready to let it become
285 // discardable. 272 // discardable.
286 virtual WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) { return nullptr; } 273 virtual WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) { return nullptr; }
287 274
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 protected: 625 protected:
639 BLINK_PLATFORM_EXPORT Platform(); 626 BLINK_PLATFORM_EXPORT Platform();
640 virtual ~Platform() { } 627 virtual ~Platform() { }
641 628
642 WebThread* m_mainThread; 629 WebThread* m_mainThread;
643 }; 630 };
644 631
645 } // namespace blink 632 } // namespace blink
646 633
647 #endif 634 #endif
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698