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

Side by Side Diff: chrome/browser/search_engines/template_url_service.h

Issue 7321001: Changes SearchProvider to set the description of the first consecutive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DCHECK Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // TemplateURLService does NOT delete the observers when deleted. 196 // TemplateURLService does NOT delete the observers when deleted.
197 void AddObserver(TemplateURLServiceObserver* observer); 197 void AddObserver(TemplateURLServiceObserver* observer);
198 void RemoveObserver(TemplateURLServiceObserver* observer); 198 void RemoveObserver(TemplateURLServiceObserver* observer);
199 199
200 // Loads the keywords. This has no effect if the keywords have already been 200 // Loads the keywords. This has no effect if the keywords have already been
201 // loaded. 201 // loaded.
202 // Observers are notified when loading completes via the method 202 // Observers are notified when loading completes via the method
203 // OnTemplateURLServiceChanged. 203 // OnTemplateURLServiceChanged.
204 void Load(); 204 void Load();
205 205
206 #if defined(UNIT_TEST)
207 void set_loaded(bool value) { loaded_ = value; }
208 #endif
209
206 // Whether or not the keywords have been loaded. 210 // Whether or not the keywords have been loaded.
207 bool loaded() { return loaded_; } 211 bool loaded() { return loaded_; }
208 212
209 // Notification that the keywords have been loaded. 213 // Notification that the keywords have been loaded.
210 // This is invoked from WebDataService, and should not be directly 214 // This is invoked from WebDataService, and should not be directly
211 // invoked. 215 // invoked.
212 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 216 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
213 const WDTypedResult* result); 217 const WDTypedResult* result);
214 218
215 // Returns the locale-direction-adjusted short name for the given keyword. 219 // Returns the locale-direction-adjusted short name for the given keyword.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // List of extension IDs waiting for Load to have keywords registered. 454 // List of extension IDs waiting for Load to have keywords registered.
451 std::vector<std::string> pending_extension_ids_; 455 std::vector<std::string> pending_extension_ids_;
452 456
453 // Function returning current time in base::Time units. 457 // Function returning current time in base::Time units.
454 TimeProvider* time_provider_; 458 TimeProvider* time_provider_;
455 459
456 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 460 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
457 }; 461 };
458 462
459 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 463 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698