Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/chromeos/launcher_search_provider/launcher_search_provider_service.h

Issue 1825913002: [Extensions] Convert APIs to use movable types [7] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Steven's Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/launcher_search_provider/launcher_search_provider_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/launcher_search_provider/launcher_search_provider_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698