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 23 matching lines...) Expand all Loading... | |
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 WebServiceWorkerCallbacks*); | 37 WebServiceWorkerCallbacks*); |
38 | 38 |
39 virtual void unregisterServiceWorker(const blink::WebURL& pattern, | 39 virtual void unregisterServiceWorker(const blink::WebURL& pattern, |
40 WebServiceWorkerCallbacks*); | 40 WebServiceWorkerCallbacks*); |
41 | 41 |
42 ServiceWorkerProviderContext* context() { return context_.get(); } | 42 ServiceWorkerProviderContext* context() { return context_.get(); } |
43 | 43 |
44 virtual int id() { return provider_id_; } | |
mlamouri (slow - plz ping)
2014/06/20 13:57:23
You should not inline this if you want to make cla
Michael van Ouwerkerk
2014/06/20 15:02:44
Done.
| |
45 | |
44 private: | 46 private: |
45 void RemoveScriptClient(); | 47 void RemoveScriptClient(); |
46 ServiceWorkerDispatcher* GetDispatcher(); | 48 ServiceWorkerDispatcher* GetDispatcher(); |
47 | 49 |
48 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 50 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
49 scoped_refptr<ServiceWorkerProviderContext> context_; | 51 scoped_refptr<ServiceWorkerProviderContext> context_; |
50 const int provider_id_; | 52 const int provider_id_; |
51 | 53 |
52 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); | 54 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); |
53 }; | 55 }; |
54 | 56 |
55 } // namespace content | 57 } // namespace content |
56 | 58 |
57 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ | 59 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ |
OLD | NEW |