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

Side by Side Diff: chrome/browser/extensions/api/omnibox/omnibox_api.h

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static BrowserContextKeyedAPIFactory<OmniboxAPI>* GetFactoryInstance(); 93 static BrowserContextKeyedAPIFactory<OmniboxAPI>* GetFactoryInstance();
94 94
95 // Convenience method to get the OmniboxAPI for a profile. 95 // Convenience method to get the OmniboxAPI for a profile.
96 static OmniboxAPI* Get(content::BrowserContext* context); 96 static OmniboxAPI* Get(content::BrowserContext* context);
97 97
98 // content::NotificationObserver implementation. 98 // content::NotificationObserver implementation.
99 virtual void Observe(int type, 99 virtual void Observe(int type,
100 const content::NotificationSource& source, 100 const content::NotificationSource& source,
101 const content::NotificationDetails& details) OVERRIDE; 101 const content::NotificationDetails& details) OVERRIDE;
102 102
103 // BrowserContextKeyedService implementation. 103 // KeyedService implementation.
104 virtual void Shutdown() OVERRIDE; 104 virtual void Shutdown() OVERRIDE;
105 105
106 // Returns the icon to display in the omnibox for the given extension. 106 // Returns the icon to display in the omnibox for the given extension.
107 gfx::Image GetOmniboxIcon(const std::string& extension_id); 107 gfx::Image GetOmniboxIcon(const std::string& extension_id);
108 108
109 // Returns the icon to display in the omnibox popup window for the given 109 // Returns the icon to display in the omnibox popup window for the given
110 // extension. 110 // extension.
111 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id); 111 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id);
112 112
113 private: 113 private:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 AutocompleteMatch* match); 166 AutocompleteMatch* match);
167 167
168 // This function converts style information populated by the JSON schema 168 // This function converts style information populated by the JSON schema
169 // // compiler into an ACMatchClassifications object. 169 // // compiler into an ACMatchClassifications object.
170 ACMatchClassifications StyleTypesToACMatchClassifications( 170 ACMatchClassifications StyleTypesToACMatchClassifications(
171 const api::omnibox::SuggestResult &suggestion); 171 const api::omnibox::SuggestResult &suggestion);
172 172
173 } // namespace extensions 173 } // namespace extensions
174 174
175 #endif // CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ 175 #endif // CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698