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

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: Use int64 for workers, remove policy check Created 7 years, 1 month 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_PROVIDER_IMPL_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_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/platform/WebServiceWorkerProviderClient.h"
12 #include "third_party/WebKit/public/web/WebFrame.h"
13 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
14
15 namespace WebKit {
16 class WebString;
17 class WebURL;
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(
32 ThreadSafeSender* thread_safe_sender,
33 ServiceWorkerMessageFilter* message_filter,
34 const WebKit::WebURL& origin,
35 scoped_ptr<WebKit::WebServiceWorkerProviderClient> client);
36 virtual ~WebServiceWorkerProviderImpl();
37
38 virtual void registerServiceWorker(const WebKit::WebURL& pattern,
39 const WebKit::WebURL& script_url,
40 WebServiceWorkerCallbacks*);
41
42 virtual void unregisterServiceWorker(const WebKit::WebURL& pattern,
43 WebServiceWorkerCallbacks*);
44
45 private:
46 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
47 scoped_ptr<WebKit::WebServiceWorkerProviderClient> ALLOW_UNUSED client_;
48
49 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl);
50 };
51
52 } // namespace content
53
54 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698