Lines Matching refs:db_
52 db_(NULL),
88 return db_ != NULL;
93 return db_;
507 if (is_running_ && db_) {
579 if (db_ || failed_init_ || path_.empty())
584 // we only set db_ to the created database if creation is successful. That
585 // way other methods won't do anything as db_ is still NULL.
603 db_ = db;
604 db_->BeginTransaction();
617 if (db_) {
618 db_->CommitTransaction();
619 delete db_;
620 db_ = NULL;
628 if (db_) {
629 db_->CommitTransaction();
630 db_->BeginTransaction();
662 if (db_ && !request->IsCancelled()) {
663 db_->GetKeywordTable()->AddKeyword(request->GetArgument());
672 if (db_ && !request->IsCancelled()) {
674 db_->GetKeywordTable()->RemoveKeyword(request->GetArgument());
682 if (db_ && !request->IsCancelled()) {
683 if (!db_->GetKeywordTable()->UpdateKeyword(request->GetArgument())) {
694 if (db_ && !request->IsCancelled()) {
696 db_->GetKeywordTable()->GetKeywords(&result.keywords);
698 db_->GetKeywordTable()->GetDefaulSearchProviderID();
700 db_->GetKeywordTable()->GetBuitinKeywordVersion();
710 if (db_ && !request->IsCancelled()) {
711 if (!db_->GetKeywordTable()->SetDefaultSearchProviderID(
724 if (db_ && !request->IsCancelled()) {
725 if (!db_->GetKeywordTable()->SetBuitinKeywordVersion(
744 if (db_ && !request->IsCancelled()) {
745 db_->GetWebAppsTable()->SetWebAppImage(
755 if (db_ && !request->IsCancelled()) {
756 db_->GetWebAppsTable()->SetWebAppHasAllImages(request->GetArgument1(),
765 if (db_ && !request->IsCancelled()) {
766 db_->GetWebAppsTable()->RemoveWebApp(request->GetArgument());
774 if (db_ && !request->IsCancelled()) {
777 db_->GetWebAppsTable()->GetWebAppHasAllImages(request->GetArgument());
778 db_->GetWebAppsTable()->GetWebAppImages(
796 if (db_ && !request->IsCancelled()) {
797 if (db_->GetTokenServiceTable()->RemoveAllTokens()) {
807 if (db_ && !request->IsCancelled()) {
808 if (db_->GetTokenServiceTable()->SetTokenForService(
820 if (db_ && !request->IsCancelled()) {
822 db_->GetTokenServiceTable()->GetAllTokens(&map);
837 if (db_ && !request->IsCancelled()) {
838 if (db_->GetLoginsTable()->AddLogin(request->GetArgument()))
846 if (db_ && !request->IsCancelled()) {
847 if (db_->GetLoginsTable()->UpdateLogin(request->GetArgument()))
855 if (db_ && !request->IsCancelled()) {
856 if (db_->GetLoginsTable()->RemoveLogin(request->GetArgument()))
865 if (db_ && !request->IsCancelled()) {
866 if (db_->GetLoginsTable()->RemoveLoginsCreatedBetween(
876 if (db_ && !request->IsCancelled()) {
878 db_->GetLoginsTable()->GetLogins(request->GetArgument(), &forms);
887 if (db_ && !request->IsCancelled()) {
889 db_->GetLoginsTable()->GetAllLogins(&forms, false);
898 if (db_ && !request->IsCancelled()) {
900 db_->GetLoginsTable()->GetAllLogins(&all_forms, true);
927 if (db_ && !request->IsCancelled()) {
929 if (!db_->GetAutofillTable()->AddFormFieldValues(form_fields, &changes)) {
952 if (db_ && !request->IsCancelled()) {
954 db_->GetAutofillTable()->GetFormValuesForElementName(
965 if (db_ && !request->IsCancelled()) {
967 if (db_->GetAutofillTable()->RemoveFormElementsAddedBetween(
990 if (db_ && !request->IsCancelled()) {
994 if (db_->GetAutofillTable()->RemoveFormElement(name, value)) {
1015 if (db_ && !request->IsCancelled()) {
1017 if (!db_->GetAutofillTable()->AddAutofillProfile(profile)) {
1037 if (db_ && !request->IsCancelled()) {
1044 if (!db_->GetAutofillTable()->GetAutofillProfile(profile.guid(),
1051 if (!db_->GetAutofillTable()->UpdateAutofillProfileMulti(profile)) {
1071 if (db_ && !request->IsCancelled()) {
1075 if (!db_->GetAutofillTable()->GetAutofillProfile(guid, &profile)) {
1081 if (!db_->GetAutofillTable()->RemoveAutofillProfile(guid)) {
1099 if (db_ && !request->IsCancelled()) {
1101 db_->GetAutofillTable()->GetAutofillProfiles(&profiles);
1112 if (db_ && !request->IsCancelled()) {
1116 if (!db_->GetAutofillTable()->GetAutofillProfilesInTrash(&guids)) {
1136 db_->GetAutofillTable()->GetAutofillProfiles(&profiles);
1151 if (!db_->GetAutofillTable()->EmptyAutofillProfilesTrash()) {
1163 if (db_ && !request->IsCancelled()) {
1165 if (!db_->GetAutofillTable()->AddCreditCard(credit_card)) {
1185 if (db_ && !request->IsCancelled()) {
1191 if (!db_->GetAutofillTable()->GetCreditCard(credit_card.guid(),
1198 if (!db_->GetAutofillTable()->UpdateCreditCard(credit_card)) {
1218 if (db_ && !request->IsCancelled()) {
1220 if (!db_->GetAutofillTable()->RemoveCreditCard(guid)) {
1239 if (db_ && !request->IsCancelled()) {
1241 db_->GetAutofillTable()->GetCreditCards(&credit_cards);
1252 if (db_ && !request->IsCancelled()) {
1255 if (db_->GetAutofillTable()->