Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / app_list / search / history.h
index 0464461..c74387d 100644 (file)
 #include "base/memory/scoped_ptr.h"
 #include "chrome/browser/ui/app_list/search/history_data_observer.h"
 #include "chrome/browser/ui/app_list/search/history_types.h"
-#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
-
-namespace content {
-class BrowserContext;
-}
+#include "components/keyed_service/core/keyed_service.h"
 
 namespace app_list {
 
@@ -34,10 +30,9 @@ class SearchHistoryTest;
 // primary and secondary associations. See HistoryData comments to see how
 // they are built. The learning data is sent to the mixer to boost results that
 // have been launched before.
-class History : public BrowserContextKeyedService,
-                public HistoryDataObserver {
+class History : public KeyedService, public HistoryDataObserver {
  public:
-  explicit History(content::BrowserContext* context);
+  explicit History(scoped_refptr<HistoryDataStore> store);
   virtual ~History();
 
   // Returns true if the service is ready.
@@ -56,7 +51,6 @@ class History : public BrowserContextKeyedService,
   // HistoryDataObserver overrides:
   virtual void OnHistoryDataLoadedFromStore() OVERRIDE;
 
-  content::BrowserContext* browser_context_;
   scoped_ptr<HistoryData> data_;
   scoped_refptr<HistoryDataStore> store_;
   bool data_loaded_;