OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "athena/extensions/shell/url_search_provider.h" | 5 #include "athena/extensions/shell/url_search_provider.h" |
6 | 6 |
7 #include "athena/activity/public/activity.h" | 7 #include "athena/activity/public/activity.h" |
8 #include "athena/activity/public/activity_factory.h" | 8 #include "athena/activity/public/activity_factory.h" |
9 #include "athena/extensions/shell/athena_shell_scheme_classifier.h" | 9 #include "athena/extensions/shell/athena_shell_scheme_classifier.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // The templateURLServiceClient for Athena. Mainly for the interaction with | 40 // The templateURLServiceClient for Athena. Mainly for the interaction with |
41 // history module (see chrome/browser/search_engines for Chrome implementation). | 41 // history module (see chrome/browser/search_engines for Chrome implementation). |
42 // TODO(mukai): Implement the contents of this class when it's necessary. | 42 // TODO(mukai): Implement the contents of this class when it's necessary. |
43 class AthenaTemplateURLServiceClient : public TemplateURLServiceClient { | 43 class AthenaTemplateURLServiceClient : public TemplateURLServiceClient { |
44 public: | 44 public: |
45 AthenaTemplateURLServiceClient() {} | 45 AthenaTemplateURLServiceClient() {} |
46 virtual ~AthenaTemplateURLServiceClient() {} | 46 virtual ~AthenaTemplateURLServiceClient() {} |
47 | 47 |
48 private: | 48 private: |
49 // TemplateURLServiceClient: | 49 // TemplateURLServiceClient: |
| 50 virtual void Shutdown() override {} |
50 virtual void SetOwner(TemplateURLService* owner) override {} | 51 virtual void SetOwner(TemplateURLService* owner) override {} |
51 virtual void DeleteAllSearchTermsForKeyword(TemplateURLID id) override {} | 52 virtual void DeleteAllSearchTermsForKeyword(TemplateURLID id) override {} |
52 virtual void SetKeywordSearchTermsForURL( | 53 virtual void SetKeywordSearchTermsForURL( |
53 const GURL& url, | 54 const GURL& url, |
54 TemplateURLID id, | 55 TemplateURLID id, |
55 const base::string16& term) override {} | 56 const base::string16& term) override {} |
56 virtual void AddKeywordGeneratedVisit(const GURL& url) override {} | 57 virtual void AddKeywordGeneratedVisit(const GURL& url) override {} |
57 virtual void RestoreExtensionInfoIfNecessary( | 58 virtual void RestoreExtensionInfoIfNecessary( |
58 TemplateURL* template_url) override {} | 59 TemplateURL* template_url) override {} |
59 | 60 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 ++it) { | 272 ++it) { |
272 if (!it->destination_url.is_valid()) | 273 if (!it->destination_url.is_valid()) |
273 continue; | 274 continue; |
274 | 275 |
275 Add(scoped_ptr<app_list::SearchResult>( | 276 Add(scoped_ptr<app_list::SearchResult>( |
276 new UrlSearchResult(browser_context_, *it))); | 277 new UrlSearchResult(browser_context_, *it))); |
277 } | 278 } |
278 } | 279 } |
279 | 280 |
280 } // namespace athena | 281 } // namespace athena |
OLD | NEW |