summaryrefslogtreecommitdiff
path: root/athena/main/url_search_provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'athena/main/url_search_provider.h')
-rw-r--r--athena/main/url_search_provider.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/athena/main/url_search_provider.h b/athena/main/url_search_provider.h
new file mode 100644
index 0000000000..6ee83014d2
--- /dev/null
+++ b/athena/main/url_search_provider.h
@@ -0,0 +1,34 @@
+// 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_MAIN_URL_SEARCH_PROVIDER_H_
+#define ATHENA_MAIN_URL_SEARCH_PROVIDER_H_
+
+#include "ui/app_list/search_provider.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace athena {
+
+// A sample search provider.
+class UrlSearchProvider : public app_list::SearchProvider {
+ public:
+ UrlSearchProvider(content::BrowserContext* browser_context);
+ virtual ~UrlSearchProvider();
+
+ // Overridden from app_list::SearchProvider
+ virtual void Start(const base::string16& query) OVERRIDE;
+ virtual void Stop() OVERRIDE;
+
+ private:
+ content::BrowserContext* browser_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(UrlSearchProvider);
+};
+
+} // namespace athena
+
+#endif // ATHENA_MAIN_URL_SEARCH_PROVIDER_H_