Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / invalidation / impl / profile_invalidation_provider.h
blob7f4f9e56377c69d4e40dcaa1a1edf1de81c0ed63
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_INVALIDATION_IMPL_PROFILE_INVALIDATION_PROVIDER_H_
6 #define COMPONENTS_INVALIDATION_IMPL_PROFILE_INVALIDATION_PROVIDER_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "components/keyed_service/core/keyed_service.h"
13 namespace invalidation {
15 class InvalidationService;
17 // A KeyedService that owns an InvalidationService.
18 class ProfileInvalidationProvider : public KeyedService {
19 public:
20 explicit ProfileInvalidationProvider(
21 scoped_ptr<InvalidationService> invalidation_service);
22 ~ProfileInvalidationProvider() override;
24 InvalidationService* GetInvalidationService();
26 // KeyedService:
27 void Shutdown() override;
29 private:
30 scoped_ptr<InvalidationService> invalidation_service_;
32 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProvider);
35 } // namespace invalidation
37 #endif // COMPONENTS_INVALIDATION_IMPL_PROFILE_INVALIDATION_PROVIDER_H_