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

Unified Diff: content/renderer/service_worker/service_worker_script_context.h

Issue 970693003: ServiceWorker: plumbing for ClientQueryOptions (2/2, chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase build fix... Created 5 years, 9 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/renderer/service_worker/service_worker_script_context.h
diff --git a/content/renderer/service_worker/service_worker_script_context.h b/content/renderer/service_worker/service_worker_script_context.h
index 656efd06fffda6eb911ac22c15c46d0dcbccf8ef..4f435dc3cece56fb677ea53393fa979dc7b27bb5 100644
--- a/content/renderer/service_worker/service_worker_script_context.h
+++ b/content/renderer/service_worker/service_worker_script_context.h
@@ -28,6 +28,7 @@
namespace blink {
struct WebCircularGeofencingRegion;
struct WebCrossOriginServiceWorkerClient;
+struct WebServiceWorkerClientQueryOptions;
class WebServiceWorkerContextProxy;
}
@@ -72,7 +73,8 @@ class ServiceWorkerScriptContext {
blink::WebServiceWorkerEventResult result);
void DidHandleSyncEvent(int request_id);
void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection);
- void GetClientDocuments(
+ void GetClients(
+ const blink::WebServiceWorkerClientQueryOptions& options,
blink::WebServiceWorkerClientsCallbacks* callbacks);
void OpenWindow(const GURL& url,
blink::WebServiceWorkerClientCallbacks* callbacks);
@@ -136,7 +138,7 @@ class ServiceWorkerScriptContext {
const base::string16& message,
const std::vector<TransferredMessagePort>& sent_message_ports,
const std::vector<int>& new_routing_ids);
- void OnDidGetClientDocuments(
+ void OnDidGetClients(
int request_id, const std::vector<ServiceWorkerClientInfo>& clients);
void OnOpenWindowResponse(int request_id,
const ServiceWorkerClientInfo& client);

Powered by Google App Engine
This is Rietveld 408576698