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

Unified Diff: public/platform/WebServiceWorkerClientsInfo.h

Issue 783663002: Implement ServiceWorkerClient attributes [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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: public/platform/WebServiceWorkerClientsInfo.h
diff --git a/public/platform/WebServiceWorkerClientsInfo.h b/public/platform/WebServiceWorkerClientsInfo.h
index 5fde9f43627691355b7fd224115046dd2f639986..461219160954ef9b526b4ff42fad400c157b4202 100644
--- a/public/platform/WebServiceWorkerClientsInfo.h
+++ b/public/platform/WebServiceWorkerClientsInfo.h
@@ -5,14 +5,28 @@
#ifndef WebServiceWorkerClientsInfo_h
#define WebServiceWorkerClientsInfo_h
-#include "WebCallbacks.h"
-#include "WebVector.h"
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebURL.h"
+#include "public/platform/WebURLRequest.h"
+#include "public/platform/WebVector.h"
namespace blink {
struct WebServiceWorkerError;
+struct WebServiceWorkerClientInfo {
+ int clientID;
+ // FIXME: Use WebPageVisibilityState? That will require moving
+ // WebPageVisibilityState from public/web to public/platform.
+ WebString visibilityState;
+ bool isFocused;
+ WebURL url;
+ WebURLRequest::FrameType frameType;
+};
+
struct WebServiceWorkerClientsInfo {
+ WebVector<WebServiceWorkerClientInfo> clients;
+ // FIXME: Remove this once the embedder stops using it.
WebVector<int> clientIDs;
};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp ('k') | public/platform/WebServiceWorkerProviderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698