summaryrefslogtreecommitdiffstats
path: root/base/callback.h
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-11 03:54:33 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-11 03:54:33 +0000
commit83aa04a3fcb98b5516e6dddc9ccae071bd361dec (patch)
tree601680c910c8b9b4c683667c9071796684863375 /base/callback.h
parentf3ec537707924486d83ee670d506baa4e8e6ad71 (diff)
downloadchromium_src-83aa04a3fcb98b5516e6dddc9ccae071bd361dec.zip
chromium_src-83aa04a3fcb98b5516e6dddc9ccae071bd361dec.tar.gz
chromium_src-83aa04a3fcb98b5516e6dddc9ccae071bd361dec.tar.bz2
Fix up base/bind documentation - elaborate on reference binding.
TBR=willchan@chromium.org R=ajwong@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11091056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/callback.h')
-rw-r--r--base/callback.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/callback.h b/base/callback.h
index 923ce99..594c9d6 100644
--- a/base/callback.h
+++ b/base/callback.h
@@ -269,8 +269,8 @@
//
// By default Bind() will store copies of all bound parameters, and attempt
// to refcount a target object if the function being bound is a class method.
-// These copies are created even if the function takes parameters as const or
-// non-const references.
+// These copies are created even if the function takes parameters as const
+// references. (Binding to non-const references is forbidden, see bind.h)
//
// To change this behavior, we introduce a set of argument wrappers
// (e.g., Unretained(), and ConstRef()). These are simple container templates