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

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 2497983002: PaymentApp: Implement PaymentAppManager.setManifest(). (Closed)
Patch Set: Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // version, returns ERROR_NOT_FOUND. 137 // version, returns ERROR_NOT_FOUND.
138 // - If the registration does not have the active version but has the waiting 138 // - If the registration does not have the active version but has the waiting
139 // version, activates the waiting version and runs |callback| when it is 139 // version, activates the waiting version and runs |callback| when it is
140 // activated. 140 // activated.
141 // 141 //
142 // Must be called from the IO thread. 142 // Must be called from the IO thread.
143 void FindReadyRegistrationForDocument( 143 void FindReadyRegistrationForDocument(
144 const GURL& document_url, 144 const GURL& document_url,
145 const FindRegistrationCallback& callback); 145 const FindRegistrationCallback& callback);
146 146
147 void FindReadyRegistrationForPattern(
nhiroki 2016/11/15 02:32:19 It'd be nice if we have a detailed comment like ot
zino 2016/11/15 17:57:37 Done.
148 const GURL& scope,
149 const FindRegistrationCallback& callback);
150
147 // Returns the registration for |registration_id|. It is guaranteed that the 151 // Returns the registration for |registration_id|. It is guaranteed that the
148 // returned registration has the activated worker. 152 // returned registration has the activated worker.
149 // 153 //
150 // - If the registration is not found, returns ERROR_NOT_FOUND. 154 // - If the registration is not found, returns ERROR_NOT_FOUND.
151 // - If the registration has neither the waiting version nor the active 155 // - If the registration has neither the waiting version nor the active
152 // version, returns ERROR_NOT_FOUND. 156 // version, returns ERROR_NOT_FOUND.
153 // - If the registration does not have the active version but has the waiting 157 // - If the registration does not have the active version but has the waiting
154 // version, activates the waiting version and runs |callback| when it is 158 // version, activates the waiting version and runs |callback| when it is
155 // activated. 159 // activated.
156 // 160 //
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 288
285 // Must be touched on the UI thread. 289 // Must be touched on the UI thread.
286 std::map<int, int> navigation_hint_task_count_per_process_; 290 std::map<int, int> navigation_hint_task_count_per_process_;
287 291
288 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 292 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
289 }; 293 };
290 294
291 } // namespace content 295 } // namespace content
292 296
293 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 297 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698