Home | History | Annotate | Download | only in net

Lines Matching defs:Backend

51 // delegates to Backend::Load, which posts a Backend::LoadAndNotifyOnDBThread
52 // task to the background runner. This task calls Backend::ChainLoadCookies(),
54 // in separate tasks. When this is complete, Backend::CompleteLoadOnIOThread is
59 // LoadCookiesForKey, it is delegated to Backend::LoadCookiesForKey, which posts
60 // Backend::LoadKeyAndNotifyOnDBThread to the BG runner. That routine loads just
61 // that single domain key (eTLD+1)'s cookies, and posts a Backend::
69 class SQLitePersistentCookieStore::Backend
70 : public base::RefCountedThreadSafe<SQLitePersistentCookieStore::Backend> {
72 Backend(
117 friend class base::RefCountedThreadSafe<SQLitePersistentCookieStore::Backend>;
120 ~Backend() {
273 DISALLOW_COPY_AND_ASSIGN(Backend);
392 void SQLitePersistentCookieStore::Backend::Load(
397 &Backend::LoadAndNotifyInBackground, this,
401 void SQLitePersistentCookieStore::Backend::LoadCookiesForKey(
413 &Backend::LoadKeyAndNotifyInBackground,
417 void SQLitePersistentCookieStore::Backend::LoadAndNotifyInBackground(
430 &Backend::CompleteLoadInForeground, this, loaded_callback, false));
436 void SQLitePersistentCookieStore::Backend::LoadKeyAndNotifyInBackground(
462 &SQLitePersistentCookieStore::Backend::CompleteLoadForKeyInForeground,
466 void SQLitePersistentCookieStore::Backend::CompleteLoadForKeyInForeground(
484 void SQLitePersistentCookieStore::Backend::ReportMetricsInBackground() {
492 void SQLitePersistentCookieStore::Backend::ReportMetrics() {
494 &SQLitePersistentCookieStore::Backend::ReportMetricsInBackground, this));
514 void SQLitePersistentCookieStore::Backend::CompleteLoadInForeground(
522 void SQLitePersistentCookieStore::Backend::Notify(
536 bool SQLitePersistentCookieStore::Backend::InitializeDatabase() {
561 base::Bind(&SQLitePersistentCookieStore::Backend::DatabaseErrorCallback,
641 void SQLitePersistentCookieStore::Backend::ChainLoadCookies(
664 &Backend::ChainLoadCookies, this, loaded_callback));
667 &Backend::CompleteLoadInForeground, this,
674 bool SQLitePersistentCookieStore::Backend::LoadCookiesForDomains(
733 bool SQLitePersistentCookieStore::Backend::EnsureDatabaseVersion() {
862 void SQLitePersistentCookieStore::Backend::AddCookie(
867 void SQLitePersistentCookieStore::Backend::UpdateCookieAccessTime(
872 void SQLitePersistentCookieStore::Backend::DeleteCookie(
877 void SQLitePersistentCookieStore::Backend::BatchOperation(
899 FROM_HERE, base::Bind(&Backend::Commit, this),
905 PostBackgroundTask(FROM_HERE, base::Bind(&Backend::Commit, this));
909 void SQLitePersistentCookieStore::Backend::Commit() {
1000 void SQLitePersistentCookieStore::Backend::Flush(
1003 PostBackgroundTask(FROM_HERE, base::Bind(&Backend::Commit, this));
1016 void SQLitePersistentCookieStore::Backend::Close() {
1020 // Must close the backend on the background runner.
1022 base::Bind(&Backend::InternalBackgroundClose, this));
1026 void SQLitePersistentCookieStore::Backend::InternalBackgroundClose() {
1040 void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnShutdown() {
1084 void SQLitePersistentCookieStore::Backend::DatabaseErrorCallback(
1104 PostBackgroundTask(FROM_HERE, base::Bind(&Backend::KillDatabase, this));
1107 void SQLitePersistentCookieStore::Backend::KillDatabase() {
1111 // This Backend will now be in-memory only. In a future run we will recreate
1120 void SQLitePersistentCookieStore::Backend::SetForceKeepSessionState() {
1125 void SQLitePersistentCookieStore::Backend::DeleteSessionCookiesOnStartup() {
1131 void SQLitePersistentCookieStore::Backend::PostBackgroundTask(
1139 void SQLitePersistentCookieStore::Backend::PostClientTask(
1153 : backend_(new Backend(path,
1193 // We release our reference to the Backend, though it will probably still have