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

Side by Side Diff: net/spdy/server_push_delegate.h

Issue 2458793002: Server push cancellation: add PushPromiseHelper which reflects information on the push promise. (Closed)
Patch Set: address rch's comments Created 4 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 (c) 2016 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_SPDY_SERVER_PUSH_DELEGATE_H_
6 #define NET_SPDY_SERVER_PUSH_DELEGATE_H_
7
8 #include "net/base/net_export.h"
9 #include "url/gurl.h"
10
11 namespace net {
12
13 class NET_EXPORT ServerPushDelegate {
Ryan Hamilton 2016/11/08 22:27:01 Nit: Class comment, please. NET_EXPORT or NET_EXP
Zhongyi Shi 2016/11/09 19:07:41 Done.
14 public:
15 // An interface to a class that reflects information on the pushed request.
16 class NET_EXPORT ServerPushHelper {
17 public:
18 virtual ~ServerPushHelper() {}
19
20 // Cancels the push if it is not claimed yet.
21 virtual void Cancel() = 0;
22
23 // Gets the URL of the pushed request.
24 virtual const GURL& GetURL() = 0;
25 };
26
27 virtual ~ServerPushDelegate() {}
28
29 // Invoked by session when a push promise has been received.
30 virtual void OnPush(std::unique_ptr<ServerPushHelper> push_helper) = 0;
31 };
32
33 } // namespace net
34
35 #endif // NET_SPDY_PUSH_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698