| Index: content/child/service_worker/web_service_worker_provider_impl.h
|
| diff --git a/content/child/service_worker/web_service_worker_provider_impl.h b/content/child/service_worker/web_service_worker_provider_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1bada5d92911b18168d927fd5ec5b6208dfb06b7
|
| --- /dev/null
|
| +++ b/content/child/service_worker/web_service_worker_provider_impl.h
|
| @@ -0,0 +1,55 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
|
| +#define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "third_party/WebKit/public/platform/WebServiceWorkerProvider.h"
|
| +#include "third_party/WebKit/public/platform/WebServiceWorkerProviderClient.h"
|
| +#include "third_party/WebKit/public/web/WebFrame.h"
|
| +#include "third_party/WebKit/public/web/WebSecurityOrigin.h"
|
| +
|
| +namespace WebKit {
|
| +class WebString;
|
| +class WebURL;
|
| +}
|
| +
|
| +namespace IPC {
|
| +class Sender;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class ThreadSafeSender;
|
| +class ServiceWorkerMessageFilter;
|
| +
|
| +class WebServiceWorkerProviderImpl
|
| + : NON_EXPORTED_BASE(public WebKit::WebServiceWorkerProvider) {
|
| + public:
|
| + WebServiceWorkerProviderImpl(
|
| + ThreadSafeSender* thread_safe_sender,
|
| + ServiceWorkerMessageFilter* message_filter,
|
| + const WebKit::WebURL& origin,
|
| + scoped_ptr<WebKit::WebServiceWorkerProviderClient> client);
|
| + virtual ~WebServiceWorkerProviderImpl();
|
| +
|
| + virtual void registerServiceWorker(const WebKit::WebURL& pattern,
|
| + const WebKit::WebURL& script_url,
|
| + WebServiceWorkerCallbacks*);
|
| +
|
| + virtual void unregisterServiceWorker(const WebKit::WebURL& pattern,
|
| + WebServiceWorkerCallbacks*);
|
| +
|
| + private:
|
| + scoped_refptr<ThreadSafeSender> thread_safe_sender_;
|
| + scoped_ptr<WebKit::WebServiceWorkerProviderClient> client_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerProviderImpl);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_PROVIDER_IMPL_H_
|
|
|