| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |