OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
dhollowa
2013/04/18 16:21:17
nit: "Copyright 2013"
Cait (Slow)
2013/04/19 19:06:22
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_OBSERVER_H_ | |
6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_OBSERVER_H_ | |
7 | |
8 #include "sql/init_status.h" | |
9 | |
10 // WebDatabase loads asynchronously on the DB thread. Clients on the UI thread | |
11 // can use this interface to be notified when the load is complete, or if it | |
12 // fails. | |
13 class WebDatabaseObserver { | |
14 public: | |
15 // Called when DB has been loaded successfully. | |
16 virtual void WebDatabaseLoaded() {}; | |
dhollowa
2013/04/18 16:21:17
Could you explain why these are not "= 0"? I'm ok
Cait (Slow)
2013/04/19 19:06:22
Several observers want to be told that the DB load
| |
17 | |
18 // Called when load failed. |status| contains error code. | |
19 virtual void WebDatabaseLoadFailed(sql::InitStatus status) {}; | |
20 | |
21 protected: | |
22 virtual ~WebDatabaseObserver() {} | |
23 }; | |
24 | |
25 | |
26 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_OBSERVER_H_ | |
OLD | NEW |