blob: 300178ed85cfd4ca64c8ece425893a31dde93155 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
#define CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
#include "content/common/content_export.h"
#include "net/cookies/cookie_monster.h"
namespace base {
class FilePath;
}
namespace quota {
class SpecialStoragePolicy;
}
namespace content {
class CookieCryptoDelegate;
// All blocking database accesses will be performed on |background_task_runner|.
// Callbacks for data load events will be performed on |client_task_runner|.
CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore(
const base::FilePath& path,
bool restore_old_session_cookies,
quota::SpecialStoragePolicy* storage_policy,
net::CookieMonster::Delegate* cookie_monster_delegate,
const scoped_refptr<base::SequencedTaskRunner>& client_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
scoped_ptr<CookieCryptoDelegate> crypto_delegate);
// Uses the default client_task_runner and background_task_runner.
CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore(
const base::FilePath& path,
bool restore_old_session_cookies,
quota::SpecialStoragePolicy* storage_policy,
net::CookieMonster::Delegate* cookie_monster_delegate,
scoped_ptr<CookieCryptoDelegate> crypto_delegate);
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_