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.
5 #ifndef NET_BASE_SDCH_OBSERVER_H_
6 #define NET_BASE_SDCH_OBSERVER_H_
8 #include "net/base/net_export.h"
16 // Observer interface for SDCH. Observers can register with
17 // the SdchManager to receive notifications of various SDCH events.
18 class NET_EXPORT SdchObserver {
20 virtual ~SdchObserver();
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;
27 // Notification that SDCH has received a request to clear all
29 virtual void OnClearDictionaries(SdchManager* manager) = 0;
34 #endif // NET_BASE_SDCH_MANAGER_H_