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

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

Issue 2762663002: BackgroundFetchRegistration.abort() should return a Promise. (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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10
(...skipping 17 matching lines...) Expand all
28 scoped_refptr<BackgroundFetchContext> background_fetch_context, 28 scoped_refptr<BackgroundFetchContext> background_fetch_context,
29 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context, 29 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context,
30 blink::mojom::BackgroundFetchServiceRequest request); 30 blink::mojom::BackgroundFetchServiceRequest request);
31 31
32 // blink::mojom::BackgroundFetchService implementation. 32 // blink::mojom::BackgroundFetchService implementation.
33 void UpdateUI(int64_t service_worker_registration_id, 33 void UpdateUI(int64_t service_worker_registration_id,
34 const std::string& tag, 34 const std::string& tag,
35 const std::string& title, 35 const std::string& title,
36 const UpdateUICallback& callback) override; 36 const UpdateUICallback& callback) override;
37 void Abort(int64_t service_worker_registration_id, 37 void Abort(int64_t service_worker_registration_id,
38 const std::string& tag) override; 38 const std::string& tag,
39 const AbortCallback& callback) override;
39 void GetRegistration(int64_t service_worker_registration_id, 40 void GetRegistration(int64_t service_worker_registration_id,
40 const std::string& tag, 41 const std::string& tag,
41 const GetRegistrationCallback& callback) override; 42 const GetRegistrationCallback& callback) override;
42 void GetTags(int64_t service_worker_registration_id, 43 void GetTags(int64_t service_worker_registration_id,
43 const GetTagsCallback& callback) override; 44 const GetTagsCallback& callback) override;
44 45
45 private: 46 private:
46 scoped_refptr<BackgroundFetchContext> background_fetch_context_; 47 scoped_refptr<BackgroundFetchContext> background_fetch_context_;
47 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 48 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(BackgroundFetchServiceImpl); 50 DISALLOW_COPY_AND_ASSIGN(BackgroundFetchServiceImpl);
50 }; 51 };
51 52
52 } // namespace content 53 } // namespace content
53 54
54 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_ 55 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698