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

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

Issue 664263002: Restructure SDCH layering to allow more separation (observer/1->[0,n] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments. Created 6 years, 1 month 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698