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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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
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 <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 typedef std::set<const Extension*> PendingExtensions; 105 typedef std::set<const Extension*> PendingExtensions;
106 106
107 void OnTemplateURLsLoaded(); 107 void OnTemplateURLsLoaded();
108 108
109 // ExtensionRegistryObserver implementation. 109 // ExtensionRegistryObserver implementation.
110 void OnExtensionLoaded(content::BrowserContext* browser_context, 110 void OnExtensionLoaded(content::BrowserContext* browser_context,
111 const Extension* extension) override; 111 const Extension* extension) override;
112 void OnExtensionUnloaded(content::BrowserContext* browser_context, 112 void OnExtensionUnloaded(content::BrowserContext* browser_context,
113 const Extension* extension, 113 const Extension* extension,
114 UnloadedExtensionInfo::Reason reason) override; 114 UnloadedExtensionReason reason) override;
115 115
116 // BrowserContextKeyedAPI implementation. 116 // BrowserContextKeyedAPI implementation.
117 static const char* service_name() { 117 static const char* service_name() {
118 return "OmniboxAPI"; 118 return "OmniboxAPI";
119 } 119 }
120 static const bool kServiceRedirectedInIncognito = true; 120 static const bool kServiceRedirectedInIncognito = true;
121 121
122 Profile* profile_; 122 Profile* profile_;
123 123
124 TemplateURLService* url_service_; 124 TemplateURLService* url_service_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 AutocompleteMatch* match); 163 AutocompleteMatch* match);
164 164
165 // This function converts style information populated by the JSON schema 165 // This function converts style information populated by the JSON schema
166 // // compiler into an ACMatchClassifications object. 166 // // compiler into an ACMatchClassifications object.
167 ACMatchClassifications StyleTypesToACMatchClassifications( 167 ACMatchClassifications StyleTypesToACMatchClassifications(
168 const api::omnibox::SuggestResult &suggestion); 168 const api::omnibox::SuggestResult &suggestion);
169 169
170 } // namespace extensions 170 } // namespace extensions
171 171
172 #endif // CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ 172 #endif // CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698