summaryrefslogtreecommitdiff
path: root/chromium/net/http/http_transaction_delegate.h
blob: 18493733bff7cca9cae0ba8059ca6c9767b0c504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2012 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.

#ifndef NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_
#define NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_

namespace net {

// Delegate class receiving notifications when cache or network actions start
// and finish, i.e. when the object starts and finishes waiting on an
// underlying cache or the network.  The owner of a HttpTransaction can use
// this to register a delegate to receive notifications when these events
// happen.
class HttpTransactionDelegate {
 public:
  virtual ~HttpTransactionDelegate() {}
  virtual void OnCacheActionStart() = 0;
  virtual void OnCacheActionFinish() = 0;
  virtual void OnNetworkActionStart() = 0;
  virtual void OnNetworkActionFinish() = 0;
};

}  // namespace net

#endif  // NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_