diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-04 15:02:18 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-04 15:02:18 +0000 |
commit | b19537cdc317d6baab5183e111668ccc88c661f6 (patch) | |
tree | ff0677915cf56d7ca78150f6a279960c0c243907 /net/base/completion_callback.h | |
parent | d10f0a0460e6c508adf61e6825f390e6c346091f (diff) | |
download | chromium_src-b19537cdc317d6baab5183e111668ccc88c661f6.zip chromium_src-b19537cdc317d6baab5183e111668ccc88c661f6.tar.gz chromium_src-b19537cdc317d6baab5183e111668ccc88c661f6.tar.bz2 |
Introduce a new CompletionCallback and TestCompletionCallback.
Start using it in DnsRRResolver.
BUG=98719
TEST=none
Review URL: http://codereview.chromium.org/8095026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/completion_callback.h')
-rw-r--r-- | net/base/completion_callback.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/base/completion_callback.h b/net/base/completion_callback.h index 1d3e551..7474793 100644 --- a/net/base/completion_callback.h +++ b/net/base/completion_callback.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -7,12 +7,14 @@ #pragma once #include "base/callback_old.h" +#include "base/callback.h" namespace net { // A callback specialization that takes a single int parameter. Usually this // is used to report a byte count or network error code. typedef Callback1<int>::Type OldCompletionCallback; +typedef base::Callback<void(int)> CompletionCallback; // Used to implement a OldCompletionCallback. template <class T> |