Home
last modified time | relevance | path

Searched refs:SdchManager (Results 1 – 9 of 9) sorted by relevance

/external/chromium/net/base/
Dsdch_filter.cc51 SdchManager::SdchErrorRecovery(SdchManager::INCOMPLETE_SDCH_CONTENT); in ~SdchFilter()
55 SdchManager::BlacklistDomain(url_); in ~SdchFilter()
65 SdchManager::SdchErrorRecovery(SdchManager::UNFLUSHED_CONTENT); in ~SdchFilter()
77 SdchManager::SdchErrorRecovery(SdchManager::CACHE_DECODED); in ~SdchFilter()
92 SdchManager::Global()->SetAllowLatencyExperiment(url_, true); in ~SdchFilter()
100 SdchManager::SdchErrorRecovery(SdchManager::UNINITIALIZED); in ~SdchFilter()
104 SdchManager::SdchErrorRecovery(SdchManager::PRIOR_TO_DICTIONARY); in ~SdchFilter()
108 SdchManager::SdchErrorRecovery(SdchManager::DECODE_ERROR); in ~SdchFilter()
174 SdchManager::SdchErrorRecovery(SdchManager::PASS_THROUGH_404_CODE); in ReadFilteredData()
182 SdchManager::SdchErrorRecovery(SdchManager::PASS_THROUGH_OLD_CACHED); in ReadFilteredData()
[all …]
Dsdch_manager.cc20 const size_t SdchManager::kMaxDictionarySize = 1000000;
23 const size_t SdchManager::kMaxDictionaryCount = 20;
26 SdchManager* SdchManager::global_;
29 SdchManager::Dictionary::Dictionary(const std::string& dictionary_text, in Dictionary()
46 SdchManager::Dictionary::~Dictionary() { in ~Dictionary()
49 bool SdchManager::Dictionary::CanAdvertise(const GURL& target_url) { in CanAdvertise()
50 if (!SdchManager::Global()->IsInSupportedDomain(target_url)) in CanAdvertise()
81 bool SdchManager::Dictionary::CanSet(const std::string& domain, in CanSet()
85 if (!SdchManager::Global()->IsInSupportedDomain(dictionary_url)) in CanSet()
141 bool SdchManager::Dictionary::CanUse(const GURL& referring_url) { in CanUse()
[all …]
Dfilter.cc213 SdchManager::SdchErrorRecovery( in FixupEncodingTypes()
214 SdchManager::MULTIENCODING_FOR_NON_SDCH_REQUEST); in FixupEncodingTypes()
218 SdchManager::SdchErrorRecovery( in FixupEncodingTypes()
219 SdchManager::SDCH_CONTENT_ENCODE_FOR_NON_SDCH_REQUEST); in FixupEncodingTypes()
239 SdchManager::SdchErrorRecovery( in FixupEncodingTypes()
240 SdchManager::OPTIONAL_GUNZIP_ENCODING_ADDED); in FixupEncodingTypes()
274 SdchManager::SdchErrorRecovery( in FixupEncodingTypes()
275 SdchManager::ADDED_CONTENT_ENCODING); in FixupEncodingTypes()
277 SdchManager::SdchErrorRecovery( in FixupEncodingTypes()
278 SdchManager::FIXED_CONTENT_ENCODING); in FixupEncodingTypes()
[all …]
Dsdch_filter_unittest.cc63 sdch_manager_(new SdchManager) { in SdchFilterTest()
73 scoped_ptr<SdchManager> sdch_manager_; // A singleton database.
80 SdchManager::GenerateHash(dictionary, &client_hash, &server_hash); in NewSdchCompressedData()
95 SdchManager::GenerateHash(dictionary, &client_hash, &server_hash); in TEST_F()
382 EXPECT_FALSE(SdchManager::Global()->IsInSupportedDomain(GURL(url_string))); in TEST_F()
383 SdchManager::ClearBlacklistings(); in TEST_F()
384 EXPECT_TRUE(SdchManager::Global()->IsInSupportedDomain(GURL(url_string))); in TEST_F()
642 EXPECT_TRUE(SdchManager::Global()->IsInSupportedDomain(GURL(url_string))); in TEST_F()
643 EXPECT_FALSE(SdchManager::Global()->IsInSupportedDomain(wrong_domain_url)); in TEST_F()
644 SdchManager::ClearBlacklistings(); in TEST_F()
[all …]
Dsdch_manager.h57 class SdchManager {
171 friend class SdchManager; // Only manager can construct an instance. variable
233 SdchManager();
234 ~SdchManager();
240 static SdchManager* Global();
343 static SdchManager* global_;
372 DISALLOW_COPY_AND_ASSIGN(SdchManager);
Dsdch_filter.h95 scoped_refptr<SdchManager::Dictionary> dictionary_;
/external/chromium/chrome/browser/net/
Dsdch_dictionary_fetcher.cc21 net::SdchManager::Shutdown(); in Shutdown()
29 net::SdchManager::SdchErrorRecovery( in Schedule()
30 net::SdchManager::DICTIONARY_ALREADY_SCHEDULED_TO_DOWNLOAD); in Schedule()
34 net::SdchManager::SdchErrorRecovery( in Schedule()
35 net::SdchManager::DICTIONARY_ALREADY_TRIED_TO_DOWNLOAD); in Schedule()
81 net::SdchManager::Global()->AddSdchDictionary(data, url); in OnURLFetchComplete()
/external/chromium/net/url_request/
Durl_request_http_job.cc254 if (SdchManager::Global() && in NotifyHeadersComplete()
255 SdchManager::Global()->IsInSupportedDomain(request_->url())) { in NotifyHeadersComplete()
346 bool advertise_sdch = SdchManager::Global() && in AddExtraHeaders()
347 SdchManager::Global()->IsInSupportedDomain(request_->url()); in AddExtraHeaders()
350 SdchManager::Global()->GetAvailDictionaryList(request_->url(), in AddExtraHeaders()
358 SdchManager::Global()->AllowLatencyExperiment(request_->url())) { in AddExtraHeaders()
1087 SdchManager* manager = SdchManager::Global(); in ~URLRequestHttpJob()
/external/chromium/chrome/browser/
Dbrowser_main.cc1685 net::SdchManager sdch_manager; // Singleton database. in BrowserMain()