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

Side by Side Diff: Source/web/WebKit.cpp

Issue 1155293007: Expose ReleaseFreeMemory to free up memory on memory pressure or idle cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing test calls. Created 5 years, 6 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 | « no previous file | Source/wtf/PartitionAlloc.h » ('j') | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "platform/heap/glue/MessageLoopInterruptor.h" 52 #include "platform/heap/glue/MessageLoopInterruptor.h"
53 #include "platform/heap/glue/PendingGCRunner.h" 53 #include "platform/heap/glue/PendingGCRunner.h"
54 #include "public/platform/Platform.h" 54 #include "public/platform/Platform.h"
55 #include "public/platform/WebPrerenderingSupport.h" 55 #include "public/platform/WebPrerenderingSupport.h"
56 #include "public/platform/WebThread.h" 56 #include "public/platform/WebThread.h"
57 #include "web/IndexedDBClientImpl.h" 57 #include "web/IndexedDBClientImpl.h"
58 #include "web/WebMediaPlayerClientImpl.h" 58 #include "web/WebMediaPlayerClientImpl.h"
59 #include "wtf/Assertions.h" 59 #include "wtf/Assertions.h"
60 #include "wtf/CryptographicallyRandomNumber.h" 60 #include "wtf/CryptographicallyRandomNumber.h"
61 #include "wtf/MainThread.h" 61 #include "wtf/MainThread.h"
62 #include "wtf/Partitions.h"
62 #include "wtf/WTF.h" 63 #include "wtf/WTF.h"
63 #include "wtf/text/AtomicString.h" 64 #include "wtf/text/AtomicString.h"
64 #include "wtf/text/TextEncoding.h" 65 #include "wtf/text/TextEncoding.h"
65 #include <v8.h> 66 #include <v8.h>
66 67
67 namespace blink { 68 namespace blink {
68 69
69 namespace { 70 namespace {
70 71
71 class EndOfTaskRunner : public WebThread::TaskObserver { 72 class EndOfTaskRunner : public WebThread::TaskObserver {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 channel->state = WTFLogChannelOn; 283 channel->state = WTFLogChannelOn;
283 #endif // !LOG_DISABLED 284 #endif // !LOG_DISABLED
284 } 285 }
285 286
286 void resetPluginCache(bool reloadPages) 287 void resetPluginCache(bool reloadPages)
287 { 288 {
288 ASSERT(!reloadPages); 289 ASSERT(!reloadPages);
289 Page::refreshPlugins(); 290 Page::refreshPlugins();
290 } 291 }
291 292
293 void decommitFreeableMemory()
294 {
295 WTF::Partitions::decommitFreeableMemory();
296 }
297
292 } // namespace blink 298 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/wtf/PartitionAlloc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698