Lines Matching defs:Backend

53 // delegates to Backend::Load, which posts a Backend::LoadAndNotifyOnDBThread
54 // task to the background runner. This task calls Backend::ChainLoadCookies(),
56 // in separate tasks. When this is complete, Backend::CompleteLoadOnIOThread is
61 // LoadCookiesForKey, it is delegated to Backend::LoadCookiesForKey, which posts
62 // Backend::LoadKeyAndNotifyOnDBThread to the BG runner. That routine loads just
63 // that single domain key (eTLD+1)'s cookies, and posts a Backend::
71 class SQLitePersistentCookieStore::Backend
72 : public base::RefCountedThreadSafe<SQLitePersistentCookieStore::Backend> {
74 Backend(
121 friend class base::RefCountedThreadSafe<SQLitePersistentCookieStore::Backend>;
124 ~Backend() {
282 DISALLOW_COPY_AND_ASSIGN(Backend);
409 void SQLitePersistentCookieStore::Backend::Load(
414 &Backend::LoadAndNotifyInBackground, this,
418 void SQLitePersistentCookieStore::Backend::LoadCookiesForKey(
430 &Backend::LoadKeyAndNotifyInBackground,
434 void SQLitePersistentCookieStore::Backend::LoadAndNotifyInBackground(
447 &Backend::CompleteLoadInForeground, this, loaded_callback, false));
453 void SQLitePersistentCookieStore::Backend::LoadKeyAndNotifyInBackground(
479 &SQLitePersistentCookieStore::Backend::CompleteLoadForKeyInForeground,
483 void SQLitePersistentCookieStore::Backend::CompleteLoadForKeyInForeground(
501 void SQLitePersistentCookieStore::Backend::ReportMetricsInBackground() {
509 void SQLitePersistentCookieStore::Backend::ReportMetrics() {
511 &SQLitePersistentCookieStore::Backend::ReportMetricsInBackground, this));
531 void SQLitePersistentCookieStore::Backend::CompleteLoadInForeground(
539 void SQLitePersistentCookieStore::Backend::Notify(
553 bool SQLitePersistentCookieStore::Backend::InitializeDatabase() {
578 base::Bind(&SQLitePersistentCookieStore::Backend::DatabaseErrorCallback,
658 void SQLitePersistentCookieStore::Backend::ChainLoadCookies(
681 &Backend::ChainLoadCookies, this, loaded_callback));
684 &Backend::CompleteLoadInForeground, this,
691 bool SQLitePersistentCookieStore::Backend::LoadCookiesForDomains(
759 bool SQLitePersistentCookieStore::Backend::EnsureDatabaseVersion() {
908 void SQLitePersistentCookieStore::Backend::AddCookie(
913 void SQLitePersistentCookieStore::Backend::UpdateCookieAccessTime(
918 void SQLitePersistentCookieStore::Backend::DeleteCookie(
923 void SQLitePersistentCookieStore::Backend::BatchOperation(
945 FROM_HERE, base::Bind(&Backend::Commit, this),
951 PostBackgroundTask(FROM_HERE, base::Bind(&Backend::Commit, this));
955 void SQLitePersistentCookieStore::Backend::Commit() {
1056 void SQLitePersistentCookieStore::Backend::Flush(
1059 PostBackgroundTask(FROM_HERE, base::Bind(&Backend::Commit, this));
1072 void SQLitePersistentCookieStore::Backend::Close() {
1078 base::Bind(&Backend::InternalBackgroundClose, this));
1082 void SQLitePersistentCookieStore::Backend::InternalBackgroundClose() {
1096 void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnShutdown() {
1140 void SQLitePersistentCookieStore::Backend::DatabaseErrorCallback(
1160 PostBackgroundTask(FROM_HERE, base::Bind(&Backend::KillDatabase, this));
1163 void SQLitePersistentCookieStore::Backend::KillDatabase() {
1167 // This Backend will now be in-memory only. In a future run we will recreate
1176 void SQLitePersistentCookieStore::Backend::SetForceKeepSessionState() {
1181 void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnStartup() {
1187 void SQLitePersistentCookieStore::Backend::PostBackgroundTask(
1195 void SQLitePersistentCookieStore::Backend::PostClientTask(
1210 : backend_(new Backend(path,
1251 // We release our reference to the Backend, though it will probably still have