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 #ifndef NET_BASE_SDCH_OBSERVER_H_ |
| 6 #define NET_BASE_SDCH_OBSERVER_H_ |
| 7 |
| 8 #include "net/base/net_export.h" |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace net { |
| 13 |
| 14 class SdchManager; |
| 15 |
| 16 // Observer interface for SDCH. Observers can register with |
| 17 // the SdchManager to receive notifications of various SDCH events. |
| 18 class NET_EXPORT SdchObserver { |
| 19 public: |
| 20 virtual ~SdchObserver(); |
| 21 |
| 22 // Notification that SDCH has seen a "Get-Dictionary" header. |
| 23 virtual void OnGetDictionary(SdchManager* manager, |
| 24 const GURL& request_url, |
| 25 const GURL& dictionary_url) = 0; |
| 26 |
| 27 // Notification that SDCH has received a request to clear all |
| 28 // its dictionaries. |
| 29 virtual void OnClearDictionaries(SdchManager* manager) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace net |
| 33 |
| 34 #endif // NET_BASE_SDCH_MANAGER_H_ |
OLD | NEW |