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

Side by Side Diff: components/search_engines/template_url_service.h

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Turns Load() into a no-op. 304 // Turns Load() into a no-op.
305 void set_disable_load(bool value) { disable_load_ = value; } 305 void set_disable_load(bool value) { disable_load_ = value; }
306 #endif 306 #endif
307 307
308 // Whether or not the keywords have been loaded. 308 // Whether or not the keywords have been loaded.
309 bool loaded() { return loaded_; } 309 bool loaded() { return loaded_; }
310 310
311 // Notification that the keywords have been loaded. 311 // Notification that the keywords have been loaded.
312 // This is invoked from WebDataService, and should not be directly 312 // This is invoked from WebDataService, and should not be directly
313 // invoked. 313 // invoked.
314 void OnWebDataServiceRequestDone(KeywordWebDataService::Handle h, 314 void OnWebDataServiceRequestDone(
315 const WDTypedResult* result) override; 315 KeywordWebDataService::Handle h,
316 std::unique_ptr<WDTypedResult> result) override;
316 317
317 // Returns the locale-direction-adjusted short name for the given keyword. 318 // Returns the locale-direction-adjusted short name for the given keyword.
318 // Also sets the out param to indicate whether the keyword belongs to an 319 // Also sets the out param to indicate whether the keyword belongs to an
319 // Omnibox extension. 320 // Omnibox extension.
320 base::string16 GetKeywordShortName(const base::string16& keyword, 321 base::string16 GetKeywordShortName(const base::string16& keyword,
321 bool* is_omnibox_api_extension_keyword); 322 bool* is_omnibox_api_extension_keyword);
322 323
323 // Called by the history service when a URL is visited. 324 // Called by the history service when a URL is visited.
324 void OnHistoryURLVisited(const URLVisitedDetails& details); 325 void OnHistoryURLVisited(const URLVisitedDetails& details);
325 326
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // Helper class to manage the default search engine. 814 // Helper class to manage the default search engine.
814 DefaultSearchManager default_search_manager_; 815 DefaultSearchManager default_search_manager_;
815 816
816 std::unique_ptr<GoogleURLTracker::Subscription> 817 std::unique_ptr<GoogleURLTracker::Subscription>
817 google_url_updated_subscription_; 818 google_url_updated_subscription_;
818 819
819 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 820 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
820 }; 821 };
821 822
822 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 823 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW
« no previous file with comments | « components/browsing_data/core/counters/autofill_counter.cc ('k') | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698