Home | History | Annotate | Download | only in main
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef ATHENA_MAIN_URL_SEARCH_PROVIDER_H_
      6 #define ATHENA_MAIN_URL_SEARCH_PROVIDER_H_
      7 
      8 #include "ui/app_list/search_provider.h"
      9 
     10 namespace content {
     11 class BrowserContext;
     12 }
     13 
     14 namespace athena {
     15 
     16 // A sample search provider.
     17 class UrlSearchProvider : public app_list::SearchProvider {
     18  public:
     19   UrlSearchProvider(content::BrowserContext* browser_context);
     20   virtual ~UrlSearchProvider();
     21 
     22   // Overridden from app_list::SearchProvider
     23   virtual void Start(const base::string16& query) OVERRIDE;
     24   virtual void Stop() OVERRIDE;
     25 
     26  private:
     27   content::BrowserContext* browser_context_;
     28 
     29   DISALLOW_COPY_AND_ASSIGN(UrlSearchProvider);
     30 };
     31 
     32 }  // namespace athena
     33 
     34 #endif  // ATHENA_MAIN_URL_SEARCH_PROVIDER_H_
     35