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

Unified Diff: content/browser/service_worker/service_worker_version.h

Issue 861373002: Refactor navigator.connect code to make it more flexible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 136cee9b8809c4afcf5f053ae67abaa65e9048ad..6954a4208010e064ca83afbc39d6aa48f6eec63f 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -35,8 +35,8 @@ struct WebCircularGeofencingRegion;
namespace content {
-struct CrossOriginServiceWorkerClient;
class EmbeddedWorkerRegistry;
+struct NavigatorConnectClient;
struct PlatformNotificationData;
class ServiceWorkerContextCore;
class ServiceWorkerProviderHost;
@@ -243,7 +243,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
// This must be called when the status() is ACTIVATED.
void DispatchCrossOriginConnectEvent(
const CrossOriginConnectCallback& callback,
- const CrossOriginServiceWorkerClient& client);
+ const NavigatorConnectClient& client);
// Sends a cross origin message event to the associated embedded worker and
// asynchronously calls |callback| when the message was sent (or failed to
@@ -254,7 +254,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
//
// This must be called when the status() is ACTIVATED.
void DispatchCrossOriginMessageEvent(
- const CrossOriginServiceWorkerClient& client,
+ const NavigatorConnectClient& client,
const base::string16& message,
const std::vector<int>& sent_message_port_ids,
const StatusCallback& callback);
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698