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

Side by Side Diff: components/safe_browsing_db/v4_protocol_manager_util.h

Issue 1869063004: 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, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_
6 #define COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_
7 7
8 // A class that implements the stateless methods used by the GetHashUpdate and 8 // A class that implements the stateless methods used by the GetHashUpdate and
9 // GetFullHash stubby calls made by Chrome using the SafeBrowsing V4 protocol. 9 // GetFullHash stubby calls made by Chrome using the SafeBrowsing V4 protocol.
10 10
(...skipping 14 matching lines...) Expand all
25 // Current product version sent in each request. 25 // Current product version sent in each request.
26 std::string version; 26 std::string version;
27 27
28 // The Google API key. 28 // The Google API key.
29 std::string key_param; 29 std::string key_param;
30 30
31 // Disable auto-updates using a command line switch? 31 // Disable auto-updates using a command line switch?
32 bool disable_auto_update; 32 bool disable_auto_update;
33 33
34 V4ProtocolConfig(); 34 V4ProtocolConfig();
35 V4ProtocolConfig(const V4ProtocolConfig& other);
35 ~V4ProtocolConfig(); 36 ~V4ProtocolConfig();
36 }; 37 };
37 38
38 // The information required to uniquely identify each list the client is 39 // The information required to uniquely identify each list the client is
39 // interested in maintaining and downloading from the SafeBrowsing servers. 40 // interested in maintaining and downloading from the SafeBrowsing servers.
40 // For example, for digests of Malware binaries on Windows: 41 // For example, for digests of Malware binaries on Windows:
41 // platform_type = WINDOWS, 42 // platform_type = WINDOWS,
42 // threat_entry_type = BINARY_DIGEST, 43 // threat_entry_type = BINARY_DIGEST,
43 // threat_type = MALWARE 44 // threat_type = MALWARE
44 struct UpdateListIdentifier { 45 struct UpdateListIdentifier {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 namespace std { 133 namespace std {
133 template <> 134 template <>
134 struct hash<safe_browsing::UpdateListIdentifier> { 135 struct hash<safe_browsing::UpdateListIdentifier> {
135 std::size_t operator()(const safe_browsing::UpdateListIdentifier& s) const { 136 std::size_t operator()(const safe_browsing::UpdateListIdentifier& s) const {
136 return s.hash(); 137 return s.hash();
137 } 138 }
138 }; 139 };
139 } 140 }
140 141
141 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_ 142 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_PROTOCOL_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « components/metrics/leak_detector/leak_detector_impl.cc ('k') | components/safe_browsing_db/v4_protocol_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698