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

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

Issue 25008006: Flush out initial [un]registerServiceWorker roundtrip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix workerid Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRY_PROXY_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRY_PROXY_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistry.h"
11 #include "third_party/WebKit/public/web/WebFrame.h"
12
13 namespace WebKit {
14 class WebString;
15 class WebURL;
16 }
17
18 namespace IPC {
19 class Sender;
20 }
21
22 namespace content {
23 class ThreadSafeSender;
24 class ServiceWorkerMessageFilter;
25
26 class WebServiceWorkerRegistryImpl
27 : NON_EXPORTED_BASE(public WebKit::WebServiceWorkerRegistry) {
28 public:
29 WebServiceWorkerRegistryImpl(ThreadSafeSender* thread_safe_sender,
30 ServiceWorkerMessageFilter* message_filter);
31 virtual ~WebServiceWorkerRegistryImpl();
32
33 virtual void registerServiceWorker(const WebKit::WebString& pattern,
34 const WebKit::WebURL& scriptUrl,
35 WebServiceWorkerCallbacks*);
36
37 virtual void unregisterServiceWorker(const WebKit::WebString& pattern,
38 WebServiceWorkerCallbacks*);
39
40 private:
41 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
42 scoped_refptr<ServiceWorkerMessageFilter> message_filter_;
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRY_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698