Home | History | Annotate | Download | only in signin
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_
      6 #define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_
      7 
      8 #include "base/memory/scoped_ptr.h"
      9 #include "components/signin/core/browser/signin_tracker.h"
     10 
     11 class Profile;
     12 
     13 class SigninTrackerFactory {
     14  public:
     15   virtual ~SigninTrackerFactory();
     16 
     17   // Creates a SigninTracker instance that tracks signin for |profile| on
     18   // behalf of |observer|.
     19   static scoped_ptr<SigninTracker> CreateForProfile(
     20       Profile* profile,
     21       SigninTracker::Observer* observer);
     22 
     23  private:
     24   SigninTrackerFactory();
     25 
     26   DISALLOW_COPY_AND_ASSIGN(SigninTrackerFactory);
     27 };
     28 
     29 #endif  // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_
     30