// 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 CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_ #define CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_ #include "content/common/content_export.h" #include "url/gurl.h" namespace content { // An interface that the Background Sync API uses to access services from the // embedder. Must only be used on the UI thread. class CONTENT_EXPORT BackgroundSyncController { public: virtual ~BackgroundSyncController() {} // Notification that a service worker registration with origin |origin| just // registered a background sync event. virtual void NotifyBackgroundSyncRegistered(const GURL& origin) {} }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_