Call callback of ClearCache after cache is doomed

This commit is contained in:
Cheng Zhao 2015-07-13 14:27:07 -07:00
parent 6840d424cd
commit 7dba4d1d8d
2 changed files with 30 additions and 22 deletions

View file

@ -9,8 +9,8 @@
#include <vector>
#include "atom/browser/api/trackable_object.h"
#include "base/callback.h"
#include "native_mate/handle.h"
#include "net/base/completion_callback.h"
class GURL;
@ -38,7 +38,7 @@ class Session: public mate::TrackableObject<Session> {
private:
void ResolveProxy(const GURL& url, ResolveProxyCallback callback);
void ClearCache(const base::Closure& callback);
void ClearCache(const net::CompletionCallback& callback);
void ClearStorageData(const GURL& origin,
const std::vector<std::string>& storage_types,
const std::vector<std::string>& quota_types,