The options of clearStorageData should be optional

This commit is contained in:
Cheng Zhao 2015-07-13 15:13:17 -07:00
parent 7dba4d1d8d
commit 868dee55de
3 changed files with 83 additions and 43 deletions

View file

@ -6,7 +6,6 @@
#define ATOM_BROWSER_API_ATOM_API_SESSION_H_
#include <string>
#include <vector>
#include "atom/browser/api/trackable_object.h"
#include "native_mate/handle.h"
@ -14,6 +13,10 @@
class GURL;
namespace mate {
class Arguments;
}
namespace atom {
class AtomBrowserContext;
@ -39,10 +42,7 @@ class Session: public mate::TrackableObject<Session> {
private:
void ResolveProxy(const GURL& url, ResolveProxyCallback 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,
const base::Closure& callback);
void ClearStorageData(mate::Arguments* args);
v8::Local<v8::Value> Cookies(v8::Isolate* isolate);
v8::Global<v8::Value> cookies_;