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

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

Issue 3412016: FBTF: Move a bunch of code to the headers and remove includes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase + fixed windows issues locally Created 10 years, 3 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
« no previous file with comments | « net/base/pem_tokenizer.cc ('k') | net/base/sdch_manager.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 friend class SdchManager; // Only manager can construct an instance. 168 friend class SdchManager; // Only manager can construct an instance.
169 FRIEND_TEST_ALL_PREFIXES(SdchFilterTest, PathMatch); 169 FRIEND_TEST_ALL_PREFIXES(SdchFilterTest, PathMatch);
170 170
171 // Construct a vc-diff usable dictionary from the dictionary_text starting 171 // Construct a vc-diff usable dictionary from the dictionary_text starting
172 // at the given offset. The supplied client_hash should be used to 172 // at the given offset. The supplied client_hash should be used to
173 // advertise the dictionary's availability relative to the suppplied URL. 173 // advertise the dictionary's availability relative to the suppplied URL.
174 Dictionary(const std::string& dictionary_text, size_t offset, 174 Dictionary(const std::string& dictionary_text, size_t offset,
175 const std::string& client_hash, const GURL& url, 175 const std::string& client_hash, const GURL& url,
176 const std::string& domain, const std::string& path, 176 const std::string& domain, const std::string& path,
177 const base::Time& expiration, const std::set<int> ports); 177 const base::Time& expiration, const std::set<int> ports);
178 ~Dictionary() {} 178 ~Dictionary();
179 179
180 const GURL& url() const { return url_; } 180 const GURL& url() const { return url_; }
181 const std::string& client_hash() const { return client_hash_; } 181 const std::string& client_hash() const { return client_hash_; }
182 182
183 // Security method to check if we can advertise this dictionary for use 183 // Security method to check if we can advertise this dictionary for use
184 // if the |target_url| returns SDCH compressed data. 184 // if the |target_url| returns SDCH compressed data.
185 bool CanAdvertise(const GURL& target_url); 185 bool CanAdvertise(const GURL& target_url);
186 186
187 // Security methods to check if we can establish a new dictionary with the 187 // Security methods to check if we can establish a new dictionary with the
188 // given data, that arrived in response to get of dictionary_url. 188 // given data, that arrived in response to get of dictionary_url.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 DomainCounter exponential_blacklist_count; 359 DomainCounter exponential_blacklist_count;
360 360
361 // List of hostnames for which a latency experiment is allowed (because a 361 // List of hostnames for which a latency experiment is allowed (because a
362 // round trip test has recently passed). 362 // round trip test has recently passed).
363 ExperimentSet allow_latency_experiment_; 363 ExperimentSet allow_latency_experiment_;
364 364
365 DISALLOW_COPY_AND_ASSIGN(SdchManager); 365 DISALLOW_COPY_AND_ASSIGN(SdchManager);
366 }; 366 };
367 367
368 #endif // NET_BASE_SDCH_MANAGER_H_ 368 #endif // NET_BASE_SDCH_MANAGER_H_
OLDNEW
« no previous file with comments | « net/base/pem_tokenizer.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698