Home
last modified time | relevance | path

Searched refs:dictionary_text (Results 1 – 3 of 3) sorted by relevance

/external/chromium/net/base/
Dsdch_manager.cc29 SdchManager::Dictionary::Dictionary(const std::string& dictionary_text, in Dictionary() argument
37 : text_(dictionary_text, offset), in Dictionary()
364 bool SdchManager::AddSdchDictionary(const std::string& dictionary_text, in AddSdchDictionary() argument
368 GenerateHash(dictionary_text, &client_hash, &server_hash); in AddSdchDictionary()
378 if (dictionary_text.empty()) { in AddSdchDictionary()
383 size_t header_end = dictionary_text.find("\n\n"); in AddSdchDictionary()
390 size_t line_end = dictionary_text.find('\n', line_start); in AddSdchDictionary()
394 size_t colon_index = dictionary_text.find(':', line_start); in AddSdchDictionary()
403 size_t value_start = dictionary_text.find_first_not_of(" \t", in AddSdchDictionary()
408 std::string name(dictionary_text, line_start, colon_index - line_start); in AddSdchDictionary()
[all …]
Dsdch_filter_unittest.cc1236 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local
1239 EXPECT_TRUE(sdch_manager_->AddSdchDictionary(dictionary_text, in TEST_F()
1245 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local
1248 EXPECT_FALSE(sdch_manager_->AddSdchDictionary(dictionary_text, in TEST_F()
1254 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local
1257 EXPECT_FALSE(sdch_manager_->AddSdchDictionary(dictionary_text, in TEST_F()
1265 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local
1268 EXPECT_FALSE(sdch_manager_->AddSdchDictionary(dictionary_text, in TEST_F()
1276 std::string dictionary_text(NewSdchDictionary(dictionary_domain)); in TEST_F() local
1280 EXPECT_TRUE(sdch_manager_->AddSdchDictionary(dictionary_text, in TEST_F()
[all …]
Dsdch_manager.h177 Dictionary(const std::string& dictionary_text,
301 bool AddSdchDictionary(const std::string& dictionary_text,
324 static void GenerateHash(const std::string& dictionary_text,