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

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

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_KEYWORD_WEB_DATA_SERVICE_H__ 5 #ifndef COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__
6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ 6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "components/search_engines/keyword_table.h" 9 #include "components/search_engines/keyword_table.h"
10 #include "components/search_engines/template_url_id.h" 10 #include "components/search_engines/template_url_id.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // On success, consumer is notified with WDResult<KeywordTable::Keywords>. 75 // On success, consumer is notified with WDResult<KeywordTable::Keywords>.
76 Handle GetKeywords(WebDataServiceConsumer* consumer); 76 Handle GetKeywords(WebDataServiceConsumer* consumer);
77 77
78 // Sets the ID of the default search provider. 78 // Sets the ID of the default search provider.
79 void SetDefaultSearchProviderID(TemplateURLID id); 79 void SetDefaultSearchProviderID(TemplateURLID id);
80 80
81 // Sets the version of the builtin keywords. 81 // Sets the version of the builtin keywords.
82 void SetBuiltinKeywordVersion(int version); 82 void SetBuiltinKeywordVersion(int version);
83 83
84 protected: 84 protected:
85 virtual ~KeywordWebDataService(); 85 ~KeywordWebDataService() override;
86 86
87 private: 87 private:
88 // Called by the BatchModeScoper (see comments there). 88 // Called by the BatchModeScoper (see comments there).
89 void AdjustBatchModeLevel(bool entering_batch_mode); 89 void AdjustBatchModeLevel(bool entering_batch_mode);
90 90
91 ////////////////////////////////////////////////////////////////////////////// 91 //////////////////////////////////////////////////////////////////////////////
92 // 92 //
93 // The following methods are only invoked on the DB thread. 93 // The following methods are only invoked on the DB thread.
94 // 94 //
95 ////////////////////////////////////////////////////////////////////////////// 95 //////////////////////////////////////////////////////////////////////////////
96 WebDatabase::State PerformKeywordOperationsImpl( 96 WebDatabase::State PerformKeywordOperationsImpl(
97 const KeywordTable::Operations& operations, 97 const KeywordTable::Operations& operations,
98 WebDatabase* db); 98 WebDatabase* db);
99 scoped_ptr<WDTypedResult> GetKeywordsImpl(WebDatabase* db); 99 scoped_ptr<WDTypedResult> GetKeywordsImpl(WebDatabase* db);
100 WebDatabase::State SetDefaultSearchProviderIDImpl(TemplateURLID id, 100 WebDatabase::State SetDefaultSearchProviderIDImpl(TemplateURLID id,
101 WebDatabase* db); 101 WebDatabase* db);
102 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); 102 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db);
103 103
104 size_t batch_mode_level_; 104 size_t batch_mode_level_;
105 KeywordTable::Operations queued_keyword_operations_; 105 KeywordTable::Operations queued_keyword_operations_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(KeywordWebDataService); 107 DISALLOW_COPY_AND_ASSIGN(KeywordWebDataService);
108 }; 108 };
109 109
110 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ 110 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__
OLDNEW
« no previous file with comments | « components/search_engines/keyword_table.h ('k') | components/search_engines/template_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698