Index: athena/extensions/chrome/chrome_search_controller_factory.h |
diff --git a/athena/extensions/chrome/chrome_search_controller_factory.h b/athena/extensions/chrome/chrome_search_controller_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2525f79673704b9617a8d76ae79ff39e0da21534 |
--- /dev/null |
+++ b/athena/extensions/chrome/chrome_search_controller_factory.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ATHENA_EXTENSIONS_CHROME_CHROME_SEARCH_CONTROLLER_FACTORY_H_ |
+#define ATHENA_EXTENSIONS_CHROME_CHROME_SEARCH_CONTROLLER_FACTORY_H_ |
+ |
+#include "athena/home/public/search_controller_factory.h" |
+#include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
+ |
+namespace content { |
+class BrowserContext; |
+} |
+ |
+namespace athena { |
+ |
+class ChromeSearchControllerFactory : public SearchControllerFactory { |
+ public: |
+ explicit ChromeSearchControllerFactory( |
+ content::BrowserContext* browser_context); |
+ virtual ~ChromeSearchControllerFactory(); |
+ |
+ virtual scoped_ptr<app_list::SearchController> Create( |
+ app_list::SearchBoxModel* search_box, |
+ app_list::AppListModel::SearchResults* results) override; |
+ |
+ private: |
+ content::BrowserContext* browser_context_; |
+ scoped_ptr<AppListControllerDelegate> list_controller_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ChromeSearchControllerFactory); |
+}; |
+ |
+} // namespace athena |
+ |
+#endif // ATHENA_EXTENSIONS_CHROME_CHROME_SEARCH_CONTROLLER_FACTORY_H_ |