| OLD | NEW | 
|   1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |   1 // Copyright (c) 2012 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 // Utilities for the SafeBrowsing code. |   5 // Utilities for the SafeBrowsing code. | 
|   6  |   6  | 
|   7 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ |   7 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ | 
|   8 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ |   8 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ | 
|   9  |   9  | 
|  10 #include <stddef.h> |  10 #include <stddef.h> | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  70   explicit SBListChunkRanges(const std::string& n); |  70   explicit SBListChunkRanges(const std::string& n); | 
|  71  |  71  | 
|  72   std::string name;  // The list name. |  72   std::string name;  // The list name. | 
|  73   std::string adds;  // The ranges for add chunks. |  73   std::string adds;  // The ranges for add chunks. | 
|  74   std::string subs;  // The ranges for sub chunks. |  74   std::string subs;  // The ranges for sub chunks. | 
|  75 }; |  75 }; | 
|  76  |  76  | 
|  77 // Container for deleting chunks from the database. |  77 // Container for deleting chunks from the database. | 
|  78 struct SBChunkDelete { |  78 struct SBChunkDelete { | 
|  79   SBChunkDelete(); |  79   SBChunkDelete(); | 
 |  80   SBChunkDelete(const SBChunkDelete& other); | 
|  80   ~SBChunkDelete(); |  81   ~SBChunkDelete(); | 
|  81  |  82  | 
|  82   std::string list_name; |  83   std::string list_name; | 
|  83   bool is_sub_del; |  84   bool is_sub_del; | 
|  84   std::vector<ChunkRange> chunk_del; |  85   std::vector<ChunkRange> chunk_del; | 
|  85 }; |  86 }; | 
|  86  |  87  | 
|  87 }  // namespace safe_browsing |  88 }  // namespace safe_browsing | 
|  88  |  89  | 
|  89 #endif  // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ |  90 #endif  // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ | 
| OLD | NEW |