blob: 156a62445822aacc8fc532d3dc9bbce0c22c9883 (
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
|
// 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_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTROLLER_IMPL_H_
#define CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTROLLER_IMPL_H_
#include "content/public/browser/background_sync_controller.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/browser_thread.h"
namespace rappor {
class RapporService;
}
class Profile;
class BackgroundSyncControllerImpl : public content::BackgroundSyncController,
public KeyedService {
public:
explicit BackgroundSyncControllerImpl(Profile* profile);
~BackgroundSyncControllerImpl() override;
// content::BackgroundSyncController overrides.
void NotifyBackgroundSyncRegistered(const GURL& origin) override;
protected:
// Virtual for testing.
virtual rappor::RapporService* GetRapporService();
private:
Profile* profile_; // This object is owned by profile_.
DISALLOW_COPY_AND_ASSIGN(BackgroundSyncControllerImpl);
};
#endif // CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_CONTROLLER_IMPL_H_
|