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

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

Issue 25008006: Flush out initial [un]registerServiceWorker roundtrip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to ToT 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/WebServiceWorkerProvider.h"
11 #include "third_party/WebKit/public/web/WebFrame.h"
12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
13
14 namespace WebKit {
15 class WebString;
16 class WebURL;
17 class WebServiceWorkerProviderClient;
18 }
19
20 namespace IPC {
21 class Sender;
22 }
23
24 namespace content {
25 class ThreadSafeSender;
26 class ServiceWorkerMessageFilter;
27
28 class WebServiceWorkerProviderImpl
29 : NON_EXPORTED_BASE(public WebKit::WebServiceWorkerProvider) {
30 public:
31 WebServiceWorkerProviderImpl(ThreadSafeSender* thread_safe_sender,
32 ServiceWorkerMessageFilter* message_filter,
33 const WebKit::WebURL& origin,
34 WebKit::WebServiceWorkerProviderClient* client);
35 virtual ~WebServiceWorkerProviderImpl();
36
37 virtual void registerServiceWorker(const WebKit::WebURL& pattern,
38 const WebKit::WebURL& script_url,
39 WebServiceWorkerCallbacks*);
40
41 virtual void unregisterServiceWorker(const WebKit::WebURL& pattern,
42 WebServiceWorkerCallbacks*);
43
44 private:
45 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
46 WebKit::WebServiceWorkerProviderClient* ALLOW_UNUSED client_;
michaeln 2013/10/16 02:03:42 Should this be a scoped_ptr<WebKit::WebServiceWork
47
48 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl);
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRY_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698