summaryrefslogtreecommitdiff
path: root/chromium/net/http/http_transaction_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/http/http_transaction_delegate.h')
-rw-r--r--chromium/net/http/http_transaction_delegate.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/net/http/http_transaction_delegate.h b/chromium/net/http/http_transaction_delegate.h
new file mode 100644
index 00000000000..18493733bff
--- /dev/null
+++ b/chromium/net/http/http_transaction_delegate.h
@@ -0,0 +1,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_