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

Unified 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: Sync'd to p300953. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: net/base/sdch_observer.h
diff --git a/net/base/sdch_observer.h b/net/base/sdch_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..640fb60d1b7f7f94ddb89a5ee62f641b529a31bc
--- /dev/null
+++ b/net/base/sdch_observer.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Observer interface for SDCH. Observers can register with
+// the SdchManager to receive notifications of various SDCH events.
+
+#ifndef NET_BASE_SDCH_OBSERVER_H_
+#define NET_BASE_SDCH_OBSERVER_H_
+
+#include "net/base/net_export.h"
+
+class GURL;
+
+namespace net {
+
+class SdchManager;
+class URLRequest;
Ryan Sleevi 2014/11/04 21:40:44 Unnecessary, right?
Randy Smith (Not in Mondays) 2014/11/05 20:35:02 Done.
+
+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.
+ public:
+ virtual ~SdchObserver();
+
+ // Notification that SDCH has seen a "Get-Dictionary" header.
+ virtual void OnGetDictionary(SdchManager* manager,
+ const GURL& request_url,
+ const GURL& dictionary_url) = 0;
+
+ // Notification that SDCH has received a request to clear all
+ // its dictionaries.
+ virtual void OnClearDictionaries(SdchManager* manager) = 0;
+};
+
+} // namespace net
+
+#endif // NET_BASE_SDCH_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698