blob: bf69dd831339168f422add425b5f0bab4d0acb53 (
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
38
39
|
// 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 COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_
#define COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_
#include <string>
#include "build/build_config.h"
#if defined(OS_ANDROID)
#include <jni.h>
#endif
namespace invalidation {
class InvalidationService;
}
namespace net {
class URLRequestContextGetter;
}
class AccountFetcherService;
class OAuth2TokenService;
class ChildAccountInfoFetcher {
public:
// Caller takes ownership of the fetcher and keeps it alive in order to
// receive updates except on Android where the return value is a nullptr
// and there are no updates due to a stale OS cache.
static ChildAccountInfoFetcher* CreateFrom(
const std::string& account_id,
AccountFetcherService* fetcher_service,
OAuth2TokenService* token_service,
net::URLRequestContextGetter* request_context_getter,
invalidation::InvalidationService* invalidation_service);
virtual ~ChildAccountInfoFetcher();
};
#endif // COMPONENTS_SIGNIN_CORE_BROWSER_CHILD_ACCOUNT_INFO_FETCHER_H_
|