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

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

Issue 1023613002: ServiceWorker: Clean up WebServiceWorkerProviderImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | content/child/service_worker/web_service_worker_provider_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/memory/scoped_ptr.h"
11 #include "third_party/WebKit/public/platform/WebServiceWorkerProvider.h" 10 #include "third_party/WebKit/public/platform/WebServiceWorkerProvider.h"
12 11
13 namespace blink { 12 namespace blink {
14 class WebURL; 13 class WebURL;
15 class WebServiceWorkerProviderClient; 14 class WebServiceWorkerProviderClient;
16 } 15 }
17 16
18 namespace content { 17 namespace content {
19 18
20 class ServiceWorkerDispatcher; 19 class ServiceWorkerDispatcher;
(...skipping 17 matching lines...) Expand all
38 37
39 virtual void unregisterServiceWorker( 38 virtual void unregisterServiceWorker(
40 const blink::WebURL& pattern, 39 const blink::WebURL& pattern,
41 WebServiceWorkerUnregistrationCallbacks*); 40 WebServiceWorkerUnregistrationCallbacks*);
42 41
43 virtual void getRegistration(const blink::WebURL& document_url, 42 virtual void getRegistration(const blink::WebURL& document_url,
44 WebServiceWorkerGetRegistrationCallbacks*); 43 WebServiceWorkerGetRegistrationCallbacks*);
45 virtual void getRegistrationForReady( 44 virtual void getRegistrationForReady(
46 WebServiceWorkerGetRegistrationForReadyCallbacks*); 45 WebServiceWorkerGetRegistrationForReadyCallbacks*);
47 46
48 ServiceWorkerProviderContext* context() { return context_.get(); }
49
50 int provider_id() const { return provider_id_; }
51
52 private: 47 private:
53 void RemoveProviderClient(); 48 void RemoveProviderClient();
54 ServiceWorkerDispatcher* GetDispatcher(); 49 ServiceWorkerDispatcher* GetDispatcher();
55 50
56 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 51 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
57 scoped_refptr<ServiceWorkerProviderContext> context_; 52 scoped_refptr<ServiceWorkerProviderContext> context_;
58 const int provider_id_;
59 53
60 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl); 54 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl);
61 }; 55 };
62 56
63 } // namespace content 57 } // namespace content
64 58
65 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_ 59 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/service_worker/web_service_worker_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698