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

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

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "components/search_engines/keyword_table.h" 13 #include "components/search_engines/keyword_table.h"
14 #include "components/search_engines/template_url_id.h" 14 #include "components/search_engines/template_url_id.h"
15 #include "components/webdata/common/web_data_service_base.h" 15 #include "components/webdata/common/web_data_service_base.h"
16 #include "components/webdata/common/web_database.h" 16 #include "components/webdata/common/web_database.h"
17 17
18 namespace base { 18 namespace base {
19 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
20 } 20 }
21 21
22 class WDTypedResult; 22 class WDTypedResult;
23 class WebDatabaseService; 23 class WebDatabaseService;
24 struct TemplateURLData; 24 struct TemplateURLData;
25 25
26 struct WDKeywordsResult { 26 struct WDKeywordsResult {
27 WDKeywordsResult(); 27 WDKeywordsResult();
28 WDKeywordsResult(const WDKeywordsResult& other);
28 ~WDKeywordsResult(); 29 ~WDKeywordsResult();
29 30
30 KeywordTable::Keywords keywords; 31 KeywordTable::Keywords keywords;
31 // Identifies the ID of the TemplateURL that is the default search. A value of 32 // Identifies the ID of the TemplateURL that is the default search. A value of
32 // 0 indicates there is no default search provider. 33 // 0 indicates there is no default search provider.
33 int64_t default_search_provider_id; 34 int64_t default_search_provider_id;
34 // Version of the built-in keywords. A value of 0 indicates a first run. 35 // Version of the built-in keywords. A value of 0 indicates a first run.
35 int builtin_keyword_version; 36 int builtin_keyword_version;
36 }; 37 };
37 38
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 WebDatabase* db); 106 WebDatabase* db);
106 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db); 107 WebDatabase::State SetBuiltinKeywordVersionImpl(int version, WebDatabase* db);
107 108
108 size_t batch_mode_level_; 109 size_t batch_mode_level_;
109 KeywordTable::Operations queued_keyword_operations_; 110 KeywordTable::Operations queued_keyword_operations_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(KeywordWebDataService); 112 DISALLOW_COPY_AND_ASSIGN(KeywordWebDataService);
112 }; 113 };
113 114
114 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__ 115 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_WEB_DATA_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698