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

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

Issue 1186803002: ServiceWorker: Route unregister() through WebServiceWorkerRegistration for refactoring (4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@route_web_sw_reg_2
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 16 matching lines...) Expand all
27 public: 27 public:
28 WebServiceWorkerProviderImpl(ThreadSafeSender* thread_safe_sender, 28 WebServiceWorkerProviderImpl(ThreadSafeSender* thread_safe_sender,
29 ServiceWorkerProviderContext* context); 29 ServiceWorkerProviderContext* context);
30 virtual ~WebServiceWorkerProviderImpl(); 30 virtual ~WebServiceWorkerProviderImpl();
31 31
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
38 // TODO(nhiroki): Remove this after http://crbug.com/500404 is fixed.
39 virtual void unregisterServiceWorker(
40 const blink::WebURL& pattern,
41 blink::WebCallbacks<bool, blink::WebServiceWorkerError>*);
42
43 virtual void getRegistration(const blink::WebURL& document_url, 37 virtual void getRegistration(const blink::WebURL& document_url,
44 WebServiceWorkerGetRegistrationCallbacks*); 38 WebServiceWorkerGetRegistrationCallbacks*);
45 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*); 39 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*);
46 virtual void getRegistrationForReady( 40 virtual void getRegistrationForReady(
47 WebServiceWorkerGetRegistrationForReadyCallbacks*); 41 WebServiceWorkerGetRegistrationForReadyCallbacks*);
48 42
49 int provider_id() const; 43 int provider_id() const;
50 44
51 private: 45 private:
52 void RemoveProviderClient(); 46 void RemoveProviderClient();
53 ServiceWorkerDispatcher* GetDispatcher(); 47 ServiceWorkerDispatcher* GetDispatcher();
54 48
55 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 49 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
56 scoped_refptr<ServiceWorkerProviderContext> context_; 50 scoped_refptr<ServiceWorkerProviderContext> context_;
57 51
58 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); 52 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl);
59 }; 53 };
60 54
61 } // namespace content 55 } // namespace content
62 56
63 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ 57 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698