14e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved.
24e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
34e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// found in the LICENSE file.
44e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
54e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#ifndef WEAK_PTR_FACTORY_H_
64e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#define WEAK_PTR_FACTORY_H_
74e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
84e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)namespace base {
94e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
104e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)template <typename T>
114e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)class WeakPtrFactory {
124e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles) public:
134e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)  explicit WeakPtrFactory(T*) {}
144e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)};
154e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
164e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)}  // namespace base
174e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
184e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#endif  // WEAK_PTR_FACTORY_H_
19