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

Unified Diff: content/child/service_worker/web_cross_origin_service_worker_client_impl.h

Issue 668303004: WIP DO NOT COMMIT chromium side of navigator.connect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: content/child/service_worker/web_cross_origin_service_worker_client_impl.h
diff --git a/content/child/service_worker/web_cross_origin_service_worker_client_impl.h b/content/child/service_worker/web_cross_origin_service_worker_client_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e94f9c73e7d7ae34d9b8d9afe8bf314c4100352
--- /dev/null
+++ b/content/child/service_worker/web_cross_origin_service_worker_client_impl.h
@@ -0,0 +1,33 @@
+// Copyright 2014 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_CROSS_ORIGIN_SERVICE_ORKER_CLIENT_IMPL_H_
+#define CONTENT_CHILD_SERVICE_WORKER_WEB_CROSS_ORIGIN_SERVICE_ORKER_CLIENT_IMPL_H_
+
+#include "third_party/WebKit/public/platform/WebCrossOriginServiceWorkerClient.h"
+#include "url/gurl.h"
+
+namespace content {
+
+struct CrossOriginServiceWorkerClient;
+
+class WebCrossOriginServiceWorkerClientImpl
+ : public blink::WebCrossOriginServiceWorkerClient {
+ public:
+ WebCrossOriginServiceWorkerClientImpl(
+ const CrossOriginServiceWorkerClient& client);
+ virtual ~WebCrossOriginServiceWorkerClientImpl();
+
+ virtual blink::WebURL targetURL() const;
+
+ int message_port_id() const { return message_port_id_; }
+
+ private:
+ GURL target_url_;
+ int message_port_id_;
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_SERVICE_WORKER_WEB_CROSS_ORIGIN_SERVICE_ORKER_CLIENT_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698