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

Side by Side Diff: content/browser/background_fetch/background_fetch_service_impl.h

Issue 2786783002: Dispatch a bare Service Worker event for a finished Background Fetch (Closed)
Patch Set: Dispatch a bare Service Worker event for a finished Background Fetch Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "content/common/content_export.h"
15 #include "third_party/WebKit/public/platform/modules/background_fetch/background _fetch.mojom.h" 16 #include "third_party/WebKit/public/platform/modules/background_fetch/background _fetch.mojom.h"
16 17
17 namespace url { 18 namespace url {
18 class Origin; 19 class Origin;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
22 23
23 class BackgroundFetchContext; 24 class BackgroundFetchContext;
24 struct BackgroundFetchOptions; 25 struct BackgroundFetchOptions;
25 struct ServiceWorkerFetchRequest; 26 struct ServiceWorkerFetchRequest;
26 27
27 class BackgroundFetchServiceImpl : public blink::mojom::BackgroundFetchService { 28 class CONTENT_EXPORT BackgroundFetchServiceImpl
29 : public blink::mojom::BackgroundFetchService {
28 public: 30 public:
29 BackgroundFetchServiceImpl( 31 BackgroundFetchServiceImpl(
30 int render_process_id, 32 int render_process_id,
31 scoped_refptr<BackgroundFetchContext> background_fetch_context); 33 scoped_refptr<BackgroundFetchContext> background_fetch_context);
32 ~BackgroundFetchServiceImpl() override; 34 ~BackgroundFetchServiceImpl() override;
33 35
34 static void Create( 36 static void Create(
35 int render_process_id, 37 int render_process_id,
36 scoped_refptr<BackgroundFetchContext> background_fetch_context, 38 scoped_refptr<BackgroundFetchContext> background_fetch_context,
37 blink::mojom::BackgroundFetchServiceRequest request); 39 blink::mojom::BackgroundFetchServiceRequest request);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 81
80 // The Background Fetch context on which operations will be dispatched. 82 // The Background Fetch context on which operations will be dispatched.
81 scoped_refptr<BackgroundFetchContext> background_fetch_context_; 83 scoped_refptr<BackgroundFetchContext> background_fetch_context_;
82 84
83 DISALLOW_COPY_AND_ASSIGN(BackgroundFetchServiceImpl); 85 DISALLOW_COPY_AND_ASSIGN(BackgroundFetchServiceImpl);
84 }; 86 };
85 87
86 } // namespace content 88 } // namespace content
87 89
88 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_ 90 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698