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

Side by Side Diff: components/webdata/common/web_database_observer.h

Issue 14103021: Use Observer to notify of WebDB load instead of callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix WIN builds Created 7 years, 7 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
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 "components/webdata/common/webdata_export.h"
9 #include "sql/init_status.h"
10
11 // WebDatabase loads asynchronously on the DB thread. Clients on the UI thread
12 // can use this interface to be notified when the load is complete, or if it
13 // fails.
14 class WEBDATA_EXPORT WebDatabaseObserver {
15 public:
16 // Called when DB has been loaded successfully.
17 virtual void WebDatabaseLoaded() = 0;
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_
OLDNEW
« no previous file with comments | « components/webdata/common/web_data_service_base.cc ('k') | components/webdata/common/web_database_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698