HomeSort by relevance Sort by last modified time
    Searched refs:safe_browsing_util (Results 1 - 25 of 32) sorted by null

1 2

  /external/chromium/chrome/browser/safe_browsing/
safe_browsing_util_unittest.cc 9 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
30 safe_browsing_util::GenerateHostsToCheck(url, &hosts);
31 safe_browsing_util::GeneratePathsToCheck(url, &paths);
43 safe_browsing_util::GenerateHostsToCheck(url, &hosts);
44 safe_browsing_util::GeneratePathsToCheck(url, &paths);
56 safe_browsing_util::GeneratePathsToCheck(url, &paths);
271 safe_browsing_util::CanonicalizeUrl(url, &canonicalized_hostname,
292 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), 0);
295 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), -1);
300 EXPECT_FALSE(safe_browsing_util::GetListName(safe_browsing_util::INVALID
    [all...]
safe_browsing_database_unittest.cc 303 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
310 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
317 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
321 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList);
333 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
337 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList);
344 EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList);
356 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks);
364 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks);
371 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks)
    [all...]
safe_browsing_service_browsertest.cc 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
55 return ContainsUrl(safe_browsing_util::kMalwareList,
56 safe_browsing_util::kPhishingList,
62 bool found = ContainsUrl(safe_browsing_util::kBinUrlList,
63 safe_browsing_util::kBinHashList,
265 safe_browsing_util::CanonicalizeUrl(url, &host, &path, NULL);
276 safe_browsing_util::StringToSBFullHash(full_digest, &full_hash->hash);
331 safe_browsing_util::StringToSBFullHash(digest, &full_hash);
386 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id,
420 GenUrlFullhashResult(malware_url, safe_browsing_util::kMalwareList
    [all...]
safe_browsing_database.cc 62 DCHECK_NE(list_id, safe_browsing_util::INVALID);
72 // |CompareFullHashes()| in safe_browsing_util.cc, except that code
83 safe_browsing_util::GenerateHostsToCheck(url, &hosts);
87 safe_browsing_util::GeneratePathsToCheck(url, &paths);
150 DCHECK(list_bit == safe_browsing_util::MALWARE ||
151 list_bit == safe_browsing_util::PHISH);
152 if (!safe_browsing_util::GetListName(list_bit, &result.list_name))
206 DCHECK_EQ(safe_browsing_util::GetListId(listname) % 2,
208 DCHECK_NE(safe_browsing_util::GetListId(listname),
209 safe_browsing_util::INVALID)
    [all...]
safe_browsing_util.cc 5 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
163 namespace safe_browsing_util { namespace
174 if (name == safe_browsing_util::kMalwareList) {
176 } else if (name == safe_browsing_util::kPhishingList) {
178 } else if (name == safe_browsing_util::kBinUrlList) {
180 } else if (name == safe_browsing_util::kBinHashList) {
182 } else if (name == safe_browsing_util::kCsdWhiteList) {
193 *list = safe_browsing_util::kMalwareList;
196 *list = safe_browsing_util::kPhishingList;
199 *list = safe_browsing_util::kBinUrlList
    [all...]
protocol_parser_unittest.cc 9 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
22 safe_browsing_util::kMalwareList,
75 safe_browsing_util::kMalwareList,
106 safe_browsing_util::kMalwareList,
168 safe_browsing_util::kMalwareList,
196 safe_browsing_util::kBinHashList,
212 // For safe_browsing_util::kMalwareList.
214 safe_browsing_util::kMalwareList,
221 // For safe_browsing_util::kPhishingList.
223 safe_browsing_util::kPhishingList
    [all...]
protocol_parser.cc 10 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
76 if (!safe_browsing_util::VerifyMAC(key, line, data, length))
99 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) {
202 !safe_browsing_util::VerifyMAC(key, cmd_parts[1], data, length))
262 !safe_browsing_util::VerifyMAC(key, mac, data, length)) {
340 if (list_name == safe_browsing_util::kBinHashList) {
378 if (list_name == safe_browsing_util::kBinHashList) {
safe_browsing_service.cc 146 safe_browsing_util::SBFullHashToString(*check.full_hash),
237 safe_browsing_util::StringToSBFullHash(full_hash, check->full_hash.get());
827 if (safe_browsing_util::IsPhishingList(list_name)) {
831 if (safe_browsing_util::IsMalwareList(list_name)) {
835 if (safe_browsing_util::IsBadbinurlList(list_name)) {
839 if (safe_browsing_util::IsBadbinhashList(list_name)) {
    [all...]
protocol_manager.cc 597 if (lists[i].name == safe_browsing_util::kPhishingList)
600 if (lists[i].name == safe_browsing_util::kMalwareList)
608 SBListChunkRanges(safe_browsing_util::kPhishingList), use_mac));
612 SBListChunkRanges(safe_browsing_util::kMalwareList), use_mac));
filter_false_positive_perftest.cc 72 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
170 safe_browsing_util::GenerateHostsToCheck(url_check, &hosts);
174 safe_browsing_util::GeneratePathsToCheck(url_check, &paths);
safe_browsing_util.h 259 namespace safe_browsing_util { namespace
324 } // namespace safe_browsing_util
  /external/chromium_org/chrome/browser/safe_browsing/
safe_browsing_util_unittest.cc 8 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
30 safe_browsing_util::GenerateHostsToCheck(url, &hosts);
31 safe_browsing_util::GeneratePathsToCheck(url, &paths);
43 safe_browsing_util::GenerateHostsToCheck(url, &hosts);
44 safe_browsing_util::GeneratePathsToCheck(url, &paths);
56 safe_browsing_util::GeneratePathsToCheck(url, &paths);
271 safe_browsing_util::CanonicalizeUrl(url, &canonicalized_hostname,
292 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), 0);
295 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), -1);
300 EXPECT_FALSE(safe_browsing_util::GetListName(safe_browsing_util::INVALID
    [all...]
database_manager_unittest.cc 52 bool RunSBHashTest(const safe_browsing_util::ListType list_type,
62 const safe_browsing_util::ListType list_type,
96 EXPECT_FALSE(RunSBHashTest(safe_browsing_util::BINURL,
98 safe_browsing_util::kMalwareList));
99 EXPECT_TRUE(RunSBHashTest(safe_browsing_util::BINURL,
101 safe_browsing_util::kBinUrlList));
107 EXPECT_FALSE(RunSBHashTest(safe_browsing_util::MALWARE,
109 safe_browsing_util::kBinUrlList));
110 EXPECT_TRUE(RunSBHashTest(safe_browsing_util::MALWARE,
112 safe_browsing_util::kMalwareList))
    [all...]
protocol_parser_unittest.cc 12 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
24 safe_browsing_util::kMalwareList,
75 safe_browsing_util::kMalwareList,
104 safe_browsing_util::kMalwareList,
164 safe_browsing_util::kMalwareList,
189 bool result = parser.ParseChunk(safe_browsing_util::kBinHashList,
204 // For safe_browsing_util::kMalwareList.
205 bool result = parser.ParseChunk(safe_browsing_util::kMalwareList,
212 // For safe_browsing_util::kPhishingList.
213 result = parser.ParseChunk(safe_browsing_util::kPhishingList
    [all...]
safe_browsing_database_unittest.cc 316 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
323 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
330 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
334 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList);
346 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks);
350 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList);
357 EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList);
369 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks);
377 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks);
384 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks)
    [all...]
safe_browsing_util.cc 5 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
157 for (size_t i = 0; i < arraysize(safe_browsing_util::kAllLists); ++i) {
158 if (!strcmp(safe_browsing_util::kAllLists[i], name.c_str())) {
166 namespace safe_browsing_util { namespace
196 if (name == safe_browsing_util::kMalwareList) {
198 } else if (name == safe_browsing_util::kPhishingList) {
200 } else if (name == safe_browsing_util::kBinUrlList) {
202 } else if (name == safe_browsing_util::kBinHashList) {
204 } else if (name == safe_browsing_util::kCsdWhiteList) {
206 } else if (name == safe_browsing_util::kDownloadWhiteList)
    [all...]
database_manager.cc 49 safe_browsing_util::ListType check_type,
59 bool is_download = check_type == safe_browsing_util::BINURL ||
60 check_type == safe_browsing_util::BINHASH;
78 safe_browsing_util::ListType check_type,
101 case safe_browsing_util::MALWARE:
102 case safe_browsing_util::PHISH:
106 case safe_browsing_util::BINURL:
118 case safe_browsing_util::BINHASH:
121 safe_browsing_util::SBFullHashToString(check.full_hashes[0]),
124 case safe_browsing_util::EXTENSIONBLACKLIST:
    [all...]
safe_browsing_database.cc 104 DCHECK_NE(list_id, safe_browsing_util::INVALID);
114 // |CompareFullHashes()| in safe_browsing_util.cc, except that code
125 safe_browsing_util::GenerateHostsToCheck(url, &hosts);
129 safe_browsing_util::GeneratePathsToCheck(url, &paths);
220 DCHECK(list_bit == safe_browsing_util::MALWARE ||
221 list_bit == safe_browsing_util::PHISH);
222 const safe_browsing_util::ListType list_id =
223 static_cast<safe_browsing_util::ListType>(list_bit);
224 if (!safe_browsing_util::GetListName(list_id, &result.list_name))
284 DCHECK_EQ(safe_browsing_util::GetListId(listname) % 2
    [all...]
protocol_parser.cc 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
73 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) {
266 if (list_name == safe_browsing_util::kBinHashList ||
267 list_name == safe_browsing_util::kDownloadWhiteList ||
268 list_name == safe_browsing_util::kExtensionBlacklist ||
269 list_name == safe_browsing_util::kIPBlacklist) {
316 if (list_name == safe_browsing_util::kBinHashList ||
317 list_name == safe_browsing_util::kDownloadWhiteList ||
318 list_name == safe_browsing_util::kExtensionBlacklist ||
319 list_name == safe_browsing_util::kIPBlacklist)
    [all...]
database_manager.h 24 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
61 safe_browsing_util::ListType check_type,
76 safe_browsing_util::ListType check_type; // See comment in constructor.
233 QueuedCheck(const safe_browsing_util::ListType check_type,
239 safe_browsing_util::ListType check_type;
safe_browsing_service_browsertest.cc 34 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
93 return ContainsUrl(safe_browsing_util::kMalwareList,
94 safe_browsing_util::kPhishingList,
101 bool found = ContainsUrl(safe_browsing_util::kBinUrlList,
102 safe_browsing_util::kBinHashList,
345 safe_browsing_util::CanonicalizeUrl(url, &host, &path, NULL);
356 full_hash->hash = safe_browsing_util::StringToSBFullHash(full_digest);
411 safe_browsing_util::StringToSBFullHash(digest).prefix);
499 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id,
520 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id
    [all...]
protocol_manager.cc 604 if (lists[i].name == safe_browsing_util::kPhishingList)
607 if (lists[i].name == safe_browsing_util::kMalwareList)
615 SBListChunkRanges(safe_browsing_util::kPhishingList)));
619 SBListChunkRanges(safe_browsing_util::kMalwareList)));
safe_browsing_database.h 384 void InsertAddChunks(safe_browsing_util::ListType list_id,
387 void InsertSubChunks(safe_browsing_util::ListType list_id,
safe_browsing_util.h 286 namespace safe_browsing_util { namespace
373 } // namespace safe_browsing_util
  /external/chromium_org/chrome/browser/extensions/
fake_safe_browsing_database_manager.cc 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
78 safe_browsing_util::StringToSBFullHash);
85 safe_browsing_util::EXTENSIONBLACKLIST,

Completed in 548 milliseconds

1 2