Change FilterChain::Append() to a template method.
commitf01ad8521c531e34dded52b8372ebf3480797016
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 21:53:06 +0000 (16 21:53 +0000)
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 21:53:06 +0000 (16 21:53 +0000)
treed330050c2a7e40c731bdbd29c621a1483aa14346
parent164da42873b70ce025199d15a870ca4650534ac5
Change FilterChain::Append() to a template method.

So that we can avoid creating PassThroughFilter.
The CL also makes FilterChain::GetHead() a little more efficient (SyncDispatcher calls it once for receiving each message).

BUG=None
TEST=None
R=darin@chromium.org

Review URL: https://codereview.chromium.org/291583005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271107 0039d316-1c4b-4281-b951-d872f2087c98
mojo/public/cpp/bindings/lib/filter_chain.cc
mojo/public/cpp/bindings/lib/filter_chain.h
mojo/public/cpp/bindings/lib/interface_impl_internal.h
mojo/public/cpp/bindings/lib/interface_ptr_internal.h
mojo/public/cpp/bindings/lib/router.cc
mojo/public/cpp/bindings/sync_dispatcher.h