Chromium Code Reviews| 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 "third_party/WebKit/public/platform/WebServiceWorkerProvider.h" | 10 #include "third_party/WebKit/public/platform/WebServiceWorkerProvider.h" |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 virtual void setClient(blink::WebServiceWorkerProviderClient* client); | 32 virtual void setClient(blink::WebServiceWorkerProviderClient* client); |
| 33 | 33 |
| 34 virtual void registerServiceWorker(const blink::WebURL& pattern, | 34 virtual void registerServiceWorker(const blink::WebURL& pattern, |
| 35 const blink::WebURL& script_url, | 35 const blink::WebURL& script_url, |
| 36 WebServiceWorkerRegistrationCallbacks*); | 36 WebServiceWorkerRegistrationCallbacks*); |
| 37 virtual void getRegistration(const blink::WebURL& document_url, | 37 virtual void getRegistration(const blink::WebURL& document_url, |
| 38 WebServiceWorkerGetRegistrationCallbacks*); | 38 WebServiceWorkerGetRegistrationCallbacks*); |
| 39 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*); | 39 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*); |
| 40 virtual void getRegistrationForReady( | 40 virtual void getRegistrationForReady( |
| 41 WebServiceWorkerGetRegistrationForReadyCallbacks*); | 41 WebServiceWorkerGetRegistrationForReadyCallbacks*); |
| 42 virtual void areScopeAndScriptURLValid(const blink::WebURL& pattern, | |
| 43 const blink::WebURL& script_url, | |
| 44 WTF::String* error_message); | |
|
nhiroki
2015/07/28 09:16:03
We cannot use WTF:: namespace in chromium. Can you
| |
| 42 | 45 |
| 43 int provider_id() const; | 46 int provider_id() const; |
| 44 | 47 |
| 45 private: | 48 private: |
| 46 void RemoveProviderClient(); | 49 void RemoveProviderClient(); |
| 47 ServiceWorkerDispatcher* GetDispatcher(); | 50 ServiceWorkerDispatcher* GetDispatcher(); |
| 48 | 51 |
| 49 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 52 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 50 scoped_refptr<ServiceWorkerProviderContext> context_; | 53 scoped_refptr<ServiceWorkerProviderContext> context_; |
| 51 | 54 |
| 52 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); | 55 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 } // namespace content | 58 } // namespace content |
| 56 | 59 |
| 57 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ | 60 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ |
| OLD | NEW |