Rename webFrame.purgeCaches to webFrame.clearCache
This matches the name of session.clearCache.
This commit is contained in:
parent
7459581d13
commit
c740438032
3 changed files with 27 additions and 34 deletions
|
@ -178,10 +178,9 @@ blink::WebCache::ResourceTypeStats WebFrame::GetResourceUsage(
|
|||
return stats;
|
||||
}
|
||||
|
||||
void WebFrame::PurgeCaches(v8::Isolate* isolate) {
|
||||
void WebFrame::ClearCache(v8::Isolate* isolate) {
|
||||
isolate->IdleNotificationDeadline(0.5);
|
||||
blink::WebCache::clear();
|
||||
|
||||
base::MemoryPressureListener::NotifyMemoryPressure(
|
||||
base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL);
|
||||
}
|
||||
|
@ -211,7 +210,7 @@ void WebFrame::BuildPrototype(
|
|||
.SetMethod("insertText", &WebFrame::InsertText)
|
||||
.SetMethod("executeJavaScript", &WebFrame::ExecuteJavaScript)
|
||||
.SetMethod("getResourceUsage", &WebFrame::GetResourceUsage)
|
||||
.SetMethod("purgeCaches", &WebFrame::PurgeCaches);
|
||||
.SetMethod("clearCache", &WebFrame::ClearCache);
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue