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

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

Issue 341553005: Move of SdchDictionaryFetcher to net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r278311. Created 6 years, 6 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_dictionary_fetcher.cc ('k') | net/net.gypi » ('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 22 matching lines...) Expand all
33 #include "url/gurl.h" 33 #include "url/gurl.h"
34 34
35 namespace net { 35 namespace net {
36 36
37 //------------------------------------------------------------------------------ 37 //------------------------------------------------------------------------------
38 // Create a public interface to help us load SDCH dictionaries. 38 // Create a public interface to help us load SDCH dictionaries.
39 // The SdchManager class allows registration to support this interface. 39 // The SdchManager class allows registration to support this interface.
40 // A browser may register a fetcher that is used by the dictionary managers to 40 // A browser may register a fetcher that is used by the dictionary managers to
41 // get data from a specified URL. This allows us to use very high level browser 41 // get data from a specified URL. This allows us to use very high level browser
42 // functionality in this base (when the functionaity can be provided). 42 // functionality in this base (when the functionaity can be provided).
43 class SdchFetcher { 43 class NET_EXPORT SdchFetcher {
44 public: 44 public:
45 SdchFetcher() {} 45 SdchFetcher() {}
46 virtual ~SdchFetcher() {} 46 virtual ~SdchFetcher() {}
47 47
48 // The Schedule() method is called when there is a need to get a dictionary 48 // The Schedule() method is called when there is a need to get a dictionary
49 // from a server. The callee is responsible for getting that dictionary_text, 49 // from a server. The callee is responsible for getting that dictionary_text,
50 // and then calling back to AddSdchDictionary() to the SdchManager instance. 50 // and then calling back to AddSdchDictionary() to the SdchManager instance.
51 virtual void Schedule(const GURL& dictionary_url) = 0; 51 virtual void Schedule(const GURL& dictionary_url) = 0;
52 52
53 // The Cancel() method is called to cancel all pending dictionary fetches. 53 // The Cancel() method is called to cancel all pending dictionary fetches.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // List of hostnames for which a latency experiment is allowed (because a 369 // List of hostnames for which a latency experiment is allowed (because a
370 // round trip test has recently passed). 370 // round trip test has recently passed).
371 ExperimentSet allow_latency_experiment_; 371 ExperimentSet allow_latency_experiment_;
372 372
373 DISALLOW_COPY_AND_ASSIGN(SdchManager); 373 DISALLOW_COPY_AND_ASSIGN(SdchManager);
374 }; 374 };
375 375
376 } // namespace net 376 } // namespace net
377 377
378 #endif // NET_BASE_SDCH_MANAGER_H_ 378 #endif // NET_BASE_SDCH_MANAGER_H_
OLDNEW
« no previous file with comments | « net/base/sdch_dictionary_fetcher.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698