summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/google/google_url_tracker_client_impl.h
blob: fb39b7dad6848726866e338ae6f823a04731a0c1 (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
34
35
36
37
// 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 IOS_CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_IMPL_H_
#define IOS_CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_IMPL_H_

#include "base/macros.h"
#include "components/google/core/browser/google_url_tracker_client.h"

class PrefService;

namespace ios {
class ChromeBrowserState;
}

namespace net {
class URLRequestContextGetter;
}

class GoogleURLTrackerClientImpl : public GoogleURLTrackerClient {
 public:
  explicit GoogleURLTrackerClientImpl(ios::ChromeBrowserState* browser_state);
  ~GoogleURLTrackerClientImpl() override;

 private:
  // GoogleURLTrackerClient implementation.
  bool IsBackgroundNetworkingEnabled() override;
  PrefService* GetPrefs() override;
  net::URLRequestContextGetter* GetRequestContext() override;

  ios::ChromeBrowserState* browser_state_;

  DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClientImpl);
};

#endif  // IOS_CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_IMPL_H_