| 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 #ifndef CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ |    5 #ifndef CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 
|    6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ |    6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 
|    7  |    7  | 
|    8 #include "base/callback_forward.h" |    8 #include "base/callback_forward.h" | 
|    9 #include "base/files/file_path.h" |    9 #include "base/files/file_path.h" | 
|   10 #include "base/memory/ref_counted.h" |   10 #include "base/memory/ref_counted.h" | 
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  112     virtual ~SupportsUserDataAggregatable() {} |  112     virtual ~SupportsUserDataAggregatable() {} | 
|  113    private: |  113    private: | 
|  114     DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable); |  114     DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable); | 
|  115   }; |  115   }; | 
|  116  |  116  | 
|  117   // Storage for user data to be accessed only on the DB thread. May |  117   // Storage for user data to be accessed only on the DB thread. May | 
|  118   // be used e.g. for SyncableService subclasses that need to be owned |  118   // be used e.g. for SyncableService subclasses that need to be owned | 
|  119   // by this object. Is created on first call to |GetDBUserData()|. |  119   // by this object. Is created on first call to |GetDBUserData()|. | 
|  120   scoped_ptr<SupportsUserDataAggregatable> db_thread_user_data_; |  120   scoped_ptr<SupportsUserDataAggregatable> db_thread_user_data_; | 
|  121  |  121  | 
 |  122   // Called after database is successfully loaded. By default this function does | 
 |  123   // nothing. Subclasses can override to support notification. | 
 |  124   virtual void NotifyDatabaseLoadedOnUIThread(); | 
 |  125  | 
|  122   void DBInitFailed(sql::InitStatus sql_status); |  126   void DBInitFailed(sql::InitStatus sql_status); | 
|  123   void NotifyDatabaseLoadedOnUIThread(); |  127   void DBInitSucceeded(); | 
|  124   void DatabaseInitOnDB(sql::InitStatus status); |  128   void DatabaseInitOnDB(sql::InitStatus status); | 
|  125 }; |  129 }; | 
|  126  |  130  | 
|  127 #endif  // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ |  131 #endif  // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 
| OLD | NEW |