Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: components/webdata/common/web_data_service_base.cc

Issue 14081043: Hook up Autofill Backend interface to SyncableServices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/webdata/common/web_data_service_base.h" 5 #include "components/webdata/common/web_data_service_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return; 84 return;
85 wdbs_->AddObserver(observer); 85 wdbs_->AddObserver(observer);
86 } 86 }
87 87
88 void WebDataServiceBase::RemoveDBObserver(WebDatabaseObserver* observer) { 88 void WebDataServiceBase::RemoveDBObserver(WebDatabaseObserver* observer) {
89 if (!wdbs_) 89 if (!wdbs_)
90 return; 90 return;
91 wdbs_->RemoveObserver(observer); 91 wdbs_->RemoveObserver(observer);
92 } 92 }
93 93
94 WebDatabase* WebDataServiceBase::GetDatabase() {
95 if (!wdbs_)
96 return NULL;
97 return wdbs_->GetDatabaseOnDB();
98 }
99
100 WebDataServiceBase::~WebDataServiceBase() { 94 WebDataServiceBase::~WebDataServiceBase() {
101 } 95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698