summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/signin/investigator_dependency_provider.h
blob: 199f7bb07a5adadcdb9cae5a45d36b7cf008ebe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2015 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.

#ifndef CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_
#define CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_

#include "base/memory/raw_ptr.h"
#include "chrome/browser/profiles/profile.h"
#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/signin_investigator.h"

// This version should work for anything with a profile object, like desktop and
// Android.
class InvestigatorDependencyProvider
    : public SigninInvestigator::DependencyProvider {
 public:
  explicit InvestigatorDependencyProvider(Profile* profile);

  InvestigatorDependencyProvider(const InvestigatorDependencyProvider&) =
      delete;
  InvestigatorDependencyProvider& operator=(
      const InvestigatorDependencyProvider&) = delete;

  ~InvestigatorDependencyProvider() override;
  PrefService* GetPrefs() override;

 private:
  // Non-owning pointer.
  raw_ptr<Profile> profile_;
};

#endif  // CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_