Index: components/webdata/common/web_data_service_base.h |
diff --git a/components/webdata/common/web_data_service_base.h b/components/webdata/common/web_data_service_base.h |
index 2ce81a06b10562e75ff51d854e670a5950ccf0c2..9e0867dd8fa0c8743c585ba9e10485516e108496 100644 |
--- a/components/webdata/common/web_data_service_base.h |
+++ b/components/webdata/common/web_data_service_base.h |
@@ -9,7 +9,6 @@ |
#include "base/files/file_path.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/supports_user_data.h" |
#include "components/webdata/common/web_database_observer.h" |
#include "components/webdata/common/webdata_export.h" |
#include "content/public/browser/browser_thread.h" |
@@ -89,15 +88,8 @@ class WEBDATA_EXPORT WebDataServiceBase |
// DBThread. |
virtual WebDatabase* GetDatabase(); |
- // Returns a SupportsUserData objects that may be used to store data |
- // owned by the DB thread on this object. Should be called only from |
- // the DB thread, and will be destroyed on the DB thread soon after |
- // |ShutdownOnUIThread()| is called. |
- base::SupportsUserData* GetDBUserData(); |
- |
protected: |
virtual ~WebDataServiceBase(); |
- virtual void ShutdownOnDBThread(); |
// Our database service. |
scoped_refptr<WebDatabaseService> wdbs_; |
@@ -114,23 +106,6 @@ class WEBDATA_EXPORT WebDataServiceBase |
content::BrowserThread::DeleteOnUIThread>; |
ProfileErrorCallback profile_error_callback_; |
- |
- // This makes the destructor public, and thus allows us to aggregate |
- // SupportsUserData. It is private by default to prevent incorrect |
- // usage in class hierarchies where it is inherited by |
- // reference-counted objects. |
- class SupportsUserDataAggregatable : public base::SupportsUserData { |
- public: |
- SupportsUserDataAggregatable() {} |
- virtual ~SupportsUserDataAggregatable() {} |
- private: |
- DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable); |
- }; |
- |
- // Storage for user data to be accessed only on the DB thread. May |
- // be used e.g. for SyncableService subclasses that need to be owned |
- // by this object. Is created on first call to |GetDBUserData()|. |
- scoped_ptr<SupportsUserDataAggregatable> db_thread_user_data_; |
}; |
#endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_BASE_H_ |