1 // Copyright 2015 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 CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTEXT_H_
8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
13 class BackgroundSyncManager
;
15 // One instance of this exists per StoragePartition, and services multiple
16 // child processes/origins. Most logic is delegated to the owned
17 // BackgroundSyncManager instance, which is only accessed on the IO
19 class CONTENT_EXPORT BackgroundSyncContext
20 : public base::RefCountedThreadSafe
<BackgroundSyncContext
> {
22 // Only callable on the IO thread.
23 virtual BackgroundSyncManager
* background_sync_manager() const = 0;
26 friend class base::RefCountedThreadSafe
<BackgroundSyncContext
>;
28 virtual ~BackgroundSyncContext() {}
31 } // namespace content
33 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTEXT_H_