Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: content/browser/background_fetch/background_fetch_service_impl.h

Issue 2774343002: Hook up BackgroundFetchServiceImpl::Fetch() to start a fetch (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/background_fetch/background_fetch_service_impl.h
diff --git a/content/browser/background_fetch/background_fetch_service_impl.h b/content/browser/background_fetch/background_fetch_service_impl.h
index de6299b8c5cc9ee7dd51b3371bd464b4d033d181..5f60e37d16a626738c7c51dfec01218323f445a8 100644
--- a/content/browser/background_fetch/background_fetch_service_impl.h
+++ b/content/browser/background_fetch/background_fetch_service_impl.h
@@ -21,18 +21,17 @@ namespace content {
class BackgroundFetchContext;
struct BackgroundFetchOptions;
-class ServiceWorkerContextWrapper;
class BackgroundFetchServiceImpl : public blink::mojom::BackgroundFetchService {
public:
BackgroundFetchServiceImpl(
- scoped_refptr<BackgroundFetchContext> background_fetch_context,
- scoped_refptr<ServiceWorkerContextWrapper> service_worker_context);
+ int render_process_id,
+ scoped_refptr<BackgroundFetchContext> background_fetch_context);
~BackgroundFetchServiceImpl() override;
static void Create(
+ int render_process_id,
scoped_refptr<BackgroundFetchContext> background_fetch_context,
- scoped_refptr<ServiceWorkerContextWrapper> service_worker_context,
blink::mojom::BackgroundFetchServiceRequest request);
// blink::mojom::BackgroundFetchService implementation.
@@ -59,8 +58,11 @@ class BackgroundFetchServiceImpl : public blink::mojom::BackgroundFetchService {
const GetTagsCallback& callback) override;
private:
+ // Id of the renderer process that this service has been created for.
+ int render_process_id_;
+
+ // The Background Fetch context on which operations will be dispatched.
scoped_refptr<BackgroundFetchContext> background_fetch_context_;
- scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
DISALLOW_COPY_AND_ASSIGN(BackgroundFetchServiceImpl);
};

Powered by Google App Engine
This is Rietveld 408576698