Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: net/base/sdch_manager.h

Issue 134903002: Split sdch_manager_unittest.cc out of sdch_filter_unittest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/sdch_filter_unittest.cc ('k') | net/base/sdch_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Provides global database of differential decompression dictionaries for the 5 // Provides global database of differential decompression dictionaries for the
6 // SDCH filter (processes sdch enconded content). 6 // SDCH filter (processes sdch enconded content).
7 7
8 // Exactly one instance of SdchManager is built, and all references are made 8 // Exactly one instance of SdchManager is built, and all references are made
9 // into that collection. 9 // into that collection.
10 // 10 //
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // There is one instance of |Dictionary| for each memory-cached SDCH 163 // There is one instance of |Dictionary| for each memory-cached SDCH
164 // dictionary. 164 // dictionary.
165 class NET_EXPORT_PRIVATE Dictionary : public base::RefCounted<Dictionary> { 165 class NET_EXPORT_PRIVATE Dictionary : public base::RefCounted<Dictionary> {
166 public: 166 public:
167 // Sdch filters can get our text to use in decoding compressed data. 167 // Sdch filters can get our text to use in decoding compressed data.
168 const std::string& text() const { return text_; } 168 const std::string& text() const { return text_; }
169 169
170 private: 170 private:
171 friend class base::RefCounted<Dictionary>; 171 friend class base::RefCounted<Dictionary>;
172 friend class SdchManager; // Only manager can construct an instance. 172 friend class SdchManager; // Only manager can construct an instance.
173 FRIEND_TEST_ALL_PREFIXES(SdchFilterTest, PathMatch); 173 FRIEND_TEST_ALL_PREFIXES(SdchManagerTest, PathMatch);
174 174
175 // Construct a vc-diff usable dictionary from the dictionary_text starting 175 // Construct a vc-diff usable dictionary from the dictionary_text starting
176 // at the given offset. The supplied client_hash should be used to 176 // at the given offset. The supplied client_hash should be used to
177 // advertise the dictionary's availability relative to the suppplied URL. 177 // advertise the dictionary's availability relative to the suppplied URL.
178 Dictionary(const std::string& dictionary_text, 178 Dictionary(const std::string& dictionary_text,
179 size_t offset, 179 size_t offset,
180 const std::string& client_hash, 180 const std::string& client_hash,
181 const GURL& url, 181 const GURL& url,
182 const std::string& domain, 182 const std::string& domain,
183 const std::string& path, 183 const std::string& path,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // List of hostnames for which a latency experiment is allowed (because a 372 // List of hostnames for which a latency experiment is allowed (because a
373 // round trip test has recently passed). 373 // round trip test has recently passed).
374 ExperimentSet allow_latency_experiment_; 374 ExperimentSet allow_latency_experiment_;
375 375
376 DISALLOW_COPY_AND_ASSIGN(SdchManager); 376 DISALLOW_COPY_AND_ASSIGN(SdchManager);
377 }; 377 };
378 378
379 } // namespace net 379 } // namespace net
380 380
381 #endif // NET_BASE_SDCH_MANAGER_H_ 381 #endif // NET_BASE_SDCH_MANAGER_H_
OLDNEW
« no previous file with comments | « net/base/sdch_filter_unittest.cc ('k') | net/base/sdch_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698