| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_LAUNCHER_SEARCH_PROVIDE
R_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_LAUNCHER_SEARCH_PROVIDE
R_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_LAUNCHER_SEARCH_PROVIDE
R_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_LAUNCHER_SEARCH_PROVIDE
R_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/launcher_search_provider/error_reporter.h" | 10 #include "chrome/browser/chromeos/launcher_search_provider/error_reporter.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Dispatches onOpenResult event of |item_id| to |extension_id|. | 51 // Dispatches onOpenResult event of |item_id| to |extension_id|. |
| 52 void OnOpenResult(const extensions::ExtensionId& extension_id, | 52 void OnOpenResult(const extensions::ExtensionId& extension_id, |
| 53 const std::string& item_id); | 53 const std::string& item_id); |
| 54 | 54 |
| 55 // Sets search results of a listener extension. | 55 // Sets search results of a listener extension. |
| 56 void SetSearchResults( | 56 void SetSearchResults( |
| 57 const extensions::Extension* extension, | 57 const extensions::Extension* extension, |
| 58 scoped_ptr<ErrorReporter> error_reporter, | 58 scoped_ptr<ErrorReporter> error_reporter, |
| 59 const int query_id, | 59 const int query_id, |
| 60 const std::vector<linked_ptr< | 60 const std::vector< |
| 61 extensions::api::launcher_search_provider::SearchResult>>& results); | 61 extensions::api::launcher_search_provider::SearchResult>& results); |
| 62 | 62 |
| 63 // Returns true if there is a running query. | 63 // Returns true if there is a running query. |
| 64 bool IsQueryRunning() const; | 64 bool IsQueryRunning() const; |
| 65 | 65 |
| 66 // extensions::ExtensionRegistryObserver override. | 66 // extensions::ExtensionRegistryObserver override. |
| 67 void OnExtensionLoaded(content::BrowserContext* browser_context, | 67 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 68 const extensions::Extension* extension) override; | 68 const extensions::Extension* extension) override; |
| 69 void OnExtensionUnloaded( | 69 void OnExtensionUnloaded( |
| 70 content::BrowserContext* browser_context, | 70 content::BrowserContext* browser_context, |
| 71 const extensions::Extension* extension, | 71 const extensions::Extension* extension, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 83 bool is_query_running_; | 83 bool is_query_running_; |
| 84 scoped_ptr<std::set<extensions::ExtensionId>> cached_listener_extension_ids_; | 84 scoped_ptr<std::set<extensions::ExtensionId>> cached_listener_extension_ids_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(Service); | 86 DISALLOW_COPY_AND_ASSIGN(Service); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace launcher_search_provider | 89 } // namespace launcher_search_provider |
| 90 } // namespace chromeos | 90 } // namespace chromeos |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_LAUNCHER_SEARCH_PROV
IDER_SERVICE_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_LAUNCHER_SEARCH_PROV
IDER_SERVICE_H_ |
| OLD | NEW |