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

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

Issue 2751343002: Adds a basic offline check to InstallableManager. (Closed)
Patch Set: Rebase 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 scoped_refptr<ServiceWorkerRegistration> registration); 263 scoped_refptr<ServiceWorkerRegistration> registration);
264 264
265 void DidDeleteAndStartOver(ServiceWorkerStatusCode status); 265 void DidDeleteAndStartOver(ServiceWorkerStatusCode status);
266 266
267 void DidGetAllRegistrationsForGetAllOrigins( 267 void DidGetAllRegistrationsForGetAllOrigins(
268 const GetUsageInfoCallback& callback, 268 const GetUsageInfoCallback& callback,
269 ServiceWorkerStatusCode status, 269 ServiceWorkerStatusCode status,
270 const std::vector<ServiceWorkerRegistrationInfo>& registrations); 270 const std::vector<ServiceWorkerRegistrationInfo>& registrations);
271 271
272 void DidCheckHasServiceWorker(const CheckHasServiceWorkerCallback& callback, 272 void DidCheckHasServiceWorker(const CheckHasServiceWorkerCallback& callback,
273 bool has_service_worker); 273 content::ServiceWorkerCapability status);
274 274
275 void DidFindRegistrationForUpdate( 275 void DidFindRegistrationForUpdate(
276 ServiceWorkerStatusCode status, 276 ServiceWorkerStatusCode status,
277 scoped_refptr<content::ServiceWorkerRegistration> registration); 277 scoped_refptr<content::ServiceWorkerRegistration> registration);
278 278
279 void DidCheckRenderProcessForNavigationHint(const GURL& document_url, 279 void DidCheckRenderProcessForNavigationHint(const GURL& document_url,
280 blink::WebNavigationHintType type, 280 blink::WebNavigationHintType type,
281 int render_process_id, 281 int render_process_id,
282 const ResultCallback& callback); 282 const ResultCallback& callback);
283 283
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 318
319 // Must be touched on the UI thread. 319 // Must be touched on the UI thread.
320 std::map<int, int> navigation_hint_task_count_per_process_; 320 std::map<int, int> navigation_hint_task_count_per_process_;
321 321
322 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 322 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
323 }; 323 };
324 324
325 } // namespace content 325 } // namespace content
326 326
327 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 327 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698