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

Side by Side Diff: content/child/service_worker/web_service_worker_provider_impl.h

Issue 1175823002: ServiceWorker: Implement ServiceWorkerRegistration.update() (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/public/platform/WebServiceWorkerProvider.h" 10 #include "third_party/WebKit/public/platform/WebServiceWorkerProvider.h"
(...skipping 27 matching lines...) Expand all
38 virtual void unregisterServiceWorker( 38 virtual void unregisterServiceWorker(
39 const blink::WebURL& pattern, 39 const blink::WebURL& pattern,
40 WebServiceWorkerUnregistrationCallbacks*); 40 WebServiceWorkerUnregistrationCallbacks*);
41 41
42 virtual void getRegistration(const blink::WebURL& document_url, 42 virtual void getRegistration(const blink::WebURL& document_url,
43 WebServiceWorkerGetRegistrationCallbacks*); 43 WebServiceWorkerGetRegistrationCallbacks*);
44 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*); 44 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*);
45 virtual void getRegistrationForReady( 45 virtual void getRegistrationForReady(
46 WebServiceWorkerGetRegistrationForReadyCallbacks*); 46 WebServiceWorkerGetRegistrationForReadyCallbacks*);
47 47
48 int provider_id() const;
49
48 private: 50 private:
49 void RemoveProviderClient(); 51 void RemoveProviderClient();
50 ServiceWorkerDispatcher* GetDispatcher(); 52 ServiceWorkerDispatcher* GetDispatcher();
51 53
52 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 54 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
53 scoped_refptr<ServiceWorkerProviderContext> context_; 55 scoped_refptr<ServiceWorkerProviderContext> context_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); 57 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl);
56 }; 58 };
57 59
58 } // namespace content 60 } // namespace content
59 61
60 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ 62 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698