/external/chromium_org/chrome/browser/safe_browsing/ |
D | protocol_parser.cc | 68 full_hash.list_name = cmd_parts[0]; in ParseGetHash() 73 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { in ParseGetHash() 121 std::string list_name; in ParseUpdate() local 150 if (command.size() != 2 || command[1] != 'd' || list_name.empty()) in ParseUpdate() 155 chunk_delete.list_name = list_name; in ParseUpdate() 162 list_name = cmd_parts[1]; in ParseUpdate() 173 chunk_url.list_name = list_name; in ParseUpdate() 193 bool SafeBrowsingProtocolParser::ParseChunk(const std::string& list_name, in ParseChunk() argument 232 if (!ParseAddChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk() 237 if (!ParseSubChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk() [all …]
|
D | safe_browsing_util_unittest.cc | 299 std::string list_name; in TEST() local 301 &list_name)); in TEST() 303 &list_name)); in TEST() 304 EXPECT_EQ(list_name, std::string(safe_browsing_util::kMalwareList)); in TEST() 306 safe_browsing_util::GetListId(list_name)); in TEST() 309 &list_name)); in TEST() 310 EXPECT_EQ(list_name, std::string(safe_browsing_util::kPhishingList)); in TEST() 312 safe_browsing_util::GetListId(list_name)); in TEST() 315 &list_name)); in TEST() 316 EXPECT_EQ(list_name, std::string(safe_browsing_util::kBinUrlList)); in TEST() [all …]
|
D | safe_browsing_util.h | 29 std::string list_name; member 108 std::string list_name; member 126 std::string list_name; member 360 bool IsPhishingList(const std::string& list_name); 361 bool IsMalwareList(const std::string& list_name); 362 bool IsBadbinurlList(const std::string& list_name); 363 bool IsBadbinhashList(const std::string& list_name); 364 bool IsExtensionList(const std::string& list_name);
|
D | protocol_parser.h | 72 bool ParseChunk(const std::string& list_name, 87 bool ParseAddChunk(const std::string& list_name, 92 bool ParseSubChunk(const std::string& list_name,
|
D | safe_browsing_util.cc | 502 bool IsPhishingList(const std::string& list_name) { in IsPhishingList() argument 503 return list_name.compare(kPhishingList) == 0; in IsPhishingList() 506 bool IsMalwareList(const std::string& list_name) { in IsMalwareList() argument 507 return list_name.compare(kMalwareList) == 0; in IsMalwareList() 510 bool IsBadbinurlList(const std::string& list_name) { in IsBadbinurlList() argument 511 return list_name.compare(kBinUrlList) == 0; in IsBadbinurlList() 514 bool IsBadbinhashList(const std::string& list_name) { in IsBadbinhashList() argument 515 return list_name.compare(kBinHashList) == 0; in IsBadbinhashList() 518 bool IsExtensionList(const std::string& list_name) { in IsExtensionList() argument 519 return list_name.compare(kExtensionBlacklist) == 0; in IsExtensionList()
|
D | safe_browsing_service_browsertest.cc | 137 virtual void InsertChunks(const std::string& list_name, in InsertChunks() argument 158 const std::string& list_name, in AddUrl() argument 161 badurls_[url.spec()].list_name = list_name; in AddUrl() 173 std::string list_name; member 192 if (badurls_it->second.list_name == list_name0 || in ContainsUrl() 193 badurls_it->second.list_name == list_name1) { in ContainsUrl() 340 const std::string& list_name, in GenUrlFullhashResult() argument 348 full_hash->list_name = list_name; in GenUrlFullhashResult() 353 const std::string& list_name, in GenDigestFullhashResult() argument 357 full_hash->list_name = list_name; in GenDigestFullhashResult() [all …]
|
D | database_manager.cc | 822 const std::string& list_name, SBChunkList* chunks, in AddDatabaseChunks() argument 827 GetDatabase()->InsertChunks(list_name, *chunks); in AddDatabaseChunks() 847 const std::string& list_name) { in GetThreatTypeFromListname() argument 848 if (safe_browsing_util::IsPhishingList(list_name)) { in GetThreatTypeFromListname() 852 if (safe_browsing_util::IsMalwareList(list_name)) { in GetThreatTypeFromListname() 856 if (safe_browsing_util::IsBadbinurlList(list_name)) { in GetThreatTypeFromListname() 860 if (safe_browsing_util::IsBadbinhashList(list_name)) { in GetThreatTypeFromListname() 864 if (safe_browsing_util::IsExtensionList(list_name)) { in GetThreatTypeFromListname() 868 DVLOG(1) << "Unknown safe browsing list " << list_name; in GetThreatTypeFromListname() 957 GetThreatTypeFromListname(full_hashes[index].list_name); in HandleOneCheck() [all …]
|
D | protocol_parser_unittest.cc | 442 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 446 EXPECT_EQ(full_hashes[1].list_name, "goog-phish-shavar"); in TEST() 450 EXPECT_EQ(full_hashes[2].list_name, "goog-phish-shavar"); in TEST() 466 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 470 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST() 474 EXPECT_EQ(full_hashes[2].list_name, "goog-malware-shavar"); in TEST() 491 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 504 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 508 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST()
|
/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_util_unittest.cc | 299 std::string list_name; in TEST() local 301 &list_name)); in TEST() 303 &list_name)); in TEST() 304 EXPECT_EQ(list_name, std::string(safe_browsing_util::kMalwareList)); in TEST() 306 safe_browsing_util::GetListId(list_name)); in TEST() 309 &list_name)); in TEST() 310 EXPECT_EQ(list_name, std::string(safe_browsing_util::kPhishingList)); in TEST() 312 safe_browsing_util::GetListId(list_name)); in TEST() 315 &list_name)); in TEST() 316 EXPECT_EQ(list_name, std::string(safe_browsing_util::kBinUrlList)); in TEST() [all …]
|
D | protocol_parser.cc | 94 full_hash.list_name = cmd_parts[0]; in ParseGetHash() 99 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { in ParseGetHash() 149 std::string list_name; in ParseUpdate() local 178 if (command.size() != 2 || command[1] != 'd' || list_name.empty()) in ParseUpdate() 183 chunk_delete.list_name = list_name; in ParseUpdate() 196 list_name = cmd_parts[1]; in ParseUpdate() 229 chunk_url.list_name = list_name; in ParseUpdate() 251 bool SafeBrowsingProtocolParser::ParseChunk(const std::string& list_name, in ParseChunk() argument 306 if (!ParseAddChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk() 311 if (!ParseSubChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk() [all …]
|
D | safe_browsing_util.h | 30 std::string list_name; member 109 std::string list_name; member 127 std::string list_name; member 308 bool IsPhishingList(const std::string& list_name); 309 bool IsMalwareList(const std::string& list_name); 310 bool IsBadbinurlList(const std::string& list_name); 311 bool IsBadbinhashList(const std::string& list_name);
|
D | safe_browsing_service_browsertest.cc | 80 virtual void InsertChunks(const std::string& list_name, in InsertChunks() argument 98 const std::string& list_name, in AddUrl() argument 101 badurls_[url.spec()].list_name = list_name; in AddUrl() 113 std::string list_name; member 132 if (badurls_it->second.list_name == list_name0 || in ContainsUrl() 133 badurls_it->second.list_name == list_name1) { in ContainsUrl() 260 const std::string& list_name, in GenUrlFullhashResult() argument 268 full_hash->list_name = list_name; in GenUrlFullhashResult() 273 const std::string& list_name, in GenDigestFullhashResult() argument 277 full_hash->list_name = list_name; in GenDigestFullhashResult() [all …]
|
D | protocol_parser.h | 78 bool ParseChunk(const std::string& list_name, 106 bool ParseAddChunk(const std::string& list_name, 111 bool ParseSubChunk(const std::string& list_name,
|
D | safe_browsing_util.cc | 450 bool IsPhishingList(const std::string& list_name) { in IsPhishingList() argument 451 return list_name.compare(kPhishingList) == 0; in IsPhishingList() 454 bool IsMalwareList(const std::string& list_name) { in IsMalwareList() argument 455 return list_name.compare(kMalwareList) == 0; in IsMalwareList() 458 bool IsBadbinurlList(const std::string& list_name) { in IsBadbinurlList() argument 459 return list_name.compare(kBinUrlList) == 0; in IsBadbinurlList() 462 bool IsBadbinhashList(const std::string& list_name) { in IsBadbinhashList() argument 463 return list_name.compare(kBinHashList) == 0; in IsBadbinhashList()
|
D | protocol_parser_unittest.cc | 487 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 491 EXPECT_EQ(full_hashes[1].list_name, "goog-phish-shavar"); in TEST() 495 EXPECT_EQ(full_hashes[2].list_name, "goog-phish-shavar"); in TEST() 513 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 517 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST() 521 EXPECT_EQ(full_hashes[2].list_name, "goog-malware-shavar"); in TEST() 578 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 593 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST() 597 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST()
|
D | safe_browsing_service.cc | 805 const std::string& list_name, SBChunkList* chunks) { in HandleChunkForDatabase() argument 808 GetDatabase()->InsertChunks(list_name, *chunks); in HandleChunkForDatabase() 826 const std::string& list_name) { in GetResultFromListname() argument 827 if (safe_browsing_util::IsPhishingList(list_name)) { in GetResultFromListname() 831 if (safe_browsing_util::IsMalwareList(list_name)) { in GetResultFromListname() 835 if (safe_browsing_util::IsBadbinurlList(list_name)) { in GetResultFromListname() 839 if (safe_browsing_util::IsBadbinhashList(list_name)) { in GetResultFromListname() 843 DVLOG(1) << "Unknown safe browsing list " << list_name; in GetResultFromListname() 983 check->result = GetResultFromListname(full_hashes[index].list_name); in HandleOneCheck()
|
D | safe_browsing_database.h | 131 virtual void InsertChunks(const std::string& list_name, 219 virtual void InsertChunks(const std::string& list_name,
|
D | safe_browsing_database.cc | 152 if (!safe_browsing_util::GetListName(list_bit, &result.list_name)) in GetCachedFullHashesForBrowse() 869 void SafeBrowsingDatabaseNew::InsertChunks(const std::string& list_name, in InsertChunks() argument 878 const int list_id = safe_browsing_util::GetListId(list_name); in InsertChunks() 879 DVLOG(2) << list_name << ": " << list_id; in InsertChunks() 904 const std::string& list_name = chunk_deletes.front().list_name; in DeleteChunks() local 905 const int list_id = safe_browsing_util::GetListId(list_name); in DeleteChunks() 942 const int list_id = safe_browsing_util::GetListId(iter->list_name); in CacheHashResults()
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
D | validate-committer-lists | 98 list_name = "webkit-committers@lists.webkit.org" 101 … print_list_if_non_empty("Committers missing from %s:" % list_name, missing_from_mailing_list) 104 …print_list_if_non_empty("Subcribers to %s missing from committer.py:" % list_name, users_missing_f… 108 list_name = "webkit-reviewers@lists.webkit.org" 111 print_list_if_non_empty("Reviewers missing from %s:" % list_name, missing_from_mailing_list) 114 …_non_empty("Subcribers to %s missing from reviewers in committer.py:" % list_name, missing_from_re… 117 …if_non_empty("Subcribers to %s completely missing from committers.py" % list_name, missing_from_co…
|
/external/chromium_org/chrome_frame/ |
D | registry_list_preferences_holder.cc | 15 const wchar_t* list_name) { in Init() argument 18 list_path += list_name; in Init()
|
D | registry_list_preferences_holder.h | 27 const wchar_t* list_name);
|
/external/chromium_org/rlz/chromeos/lib/ |
D | rlz_value_store_chromeos.cc | 238 bool RlzValueStoreChromeOS::AddValueToList(std::string list_name, in AddValueToList() argument 241 if (!rlz_store_->GetList(list_name, &list_value)) { in AddValueToList() 243 rlz_store_->Set(list_name, list_value); in AddValueToList() 249 bool RlzValueStoreChromeOS::RemoveValueFromList(std::string list_name, in RemoveValueFromList() argument 252 if (!rlz_store_->GetList(list_name, &list_value)) in RemoveValueFromList()
|
D | rlz_value_store_chromeos.h | 70 bool AddValueToList(std::string list_name, base::Value* value); 72 bool RemoveValueFromList(std::string list_name, const base::Value& value);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/ |
D | layout_test_runner_unittest.py | 80 def handle_finished_list(self, source, list_name, num_tests, elapsed_time): argument 82 self._tester.assertEqual(list_name, 'locked_tests') 86 … super(LockCheckingRunner, self).handle_finished_list(source, list_name, num_tests, elapsed_time)
|
/external/chromium_org/chrome_frame/test/ |
D | policy_settings_unittest.cc | 46 const wchar_t* list_name, in WritePolicyList() argument 50 policy_key->DeleteKey(list_name); in WritePolicyList() 53 EXPECT_EQ(ERROR_SUCCESS, list_key.Create(policy_key->Handle(), list_name, in WritePolicyList()
|