OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Observer interface for SDCH. Observers can register with | |
6 // the SdchManager to receive notifications of various SDCH events. | |
7 | |
8 #ifndef NET_BASE_SDCH_OBSERVER_H_ | |
9 #define NET_BASE_SDCH_OBSERVER_H_ | |
10 | |
11 #include "net/base/net_export.h" | |
12 | |
13 class GURL; | |
14 | |
15 namespace net { | |
16 | |
17 class SdchManager; | |
18 class URLRequest; | |
Ryan Sleevi
2014/11/04 21:40:44
Unnecessary, right?
Randy Smith (Not in Mondays)
2014/11/05 20:35:02
Done.
| |
19 | |
20 class NET_EXPORT SdchObserver { | |
Ryan Sleevi
2014/11/04 21:40:44
Document?
Seems like lines 5-6 should be moved to
Randy Smith (Not in Mondays)
2014/11/05 20:35:02
Done.
| |
21 public: | |
22 virtual ~SdchObserver(); | |
23 | |
24 // Notification that SDCH has seen a "Get-Dictionary" header. | |
25 virtual void OnGetDictionary(SdchManager* manager, | |
26 const GURL& request_url, | |
27 const GURL& dictionary_url) = 0; | |
28 | |
29 // Notification that SDCH has received a request to clear all | |
30 // its dictionaries. | |
31 virtual void OnClearDictionaries(SdchManager* manager) = 0; | |
32 }; | |
33 | |
34 } // namespace net | |
35 | |
36 #endif // NET_BASE_SDCH_MANAGER_H_ | |
OLD | NEW |