blob: fb39b7dad6848726866e338ae6f823a04731a0c1 [file] [log] [blame]
// 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_