OLD | NEW |
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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual void setClient(blink::WebServiceWorkerProviderClient* client); | 33 virtual void setClient(blink::WebServiceWorkerProviderClient* client); |
34 | 34 |
35 virtual void registerServiceWorker(const blink::WebURL& pattern, | 35 virtual void registerServiceWorker(const blink::WebURL& pattern, |
36 const blink::WebURL& script_url, | 36 const blink::WebURL& script_url, |
37 WebServiceWorkerRegistrationCallbacks*); | 37 WebServiceWorkerRegistrationCallbacks*); |
38 | 38 |
39 virtual void unregisterServiceWorker( | 39 virtual void unregisterServiceWorker( |
40 const blink::WebURL& pattern, | 40 const blink::WebURL& pattern, |
41 WebServiceWorkerUnregistrationCallbacks*); | 41 WebServiceWorkerUnregistrationCallbacks*); |
42 | 42 |
| 43 virtual void getRegistration(const blink::WebURL& document_url, |
| 44 WebServiceWorkerGetRegistrationCallbacks*); |
| 45 |
43 ServiceWorkerProviderContext* context() { return context_.get(); } | 46 ServiceWorkerProviderContext* context() { return context_.get(); } |
44 | 47 |
45 int provider_id() const { return provider_id_; } | 48 int provider_id() const { return provider_id_; } |
46 | 49 |
47 private: | 50 private: |
48 void RemoveScriptClient(); | 51 void RemoveScriptClient(); |
49 ServiceWorkerDispatcher* GetDispatcher(); | 52 ServiceWorkerDispatcher* GetDispatcher(); |
50 | 53 |
51 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 54 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
52 scoped_refptr<ServiceWorkerProviderContext> context_; | 55 scoped_refptr<ServiceWorkerProviderContext> context_; |
53 const int provider_id_; | 56 const int provider_id_; |
54 | 57 |
55 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); | 58 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); |
56 }; | 59 }; |
57 | 60 |
58 } // namespace content | 61 } // namespace content |
59 | 62 |
60 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ | 63 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ |
OLD | NEW |