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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 850413002: [ServiceWorker] Implement ServiceWorkerClients.openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_info_cb
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class WebServiceWorkerResponse; 49 class WebServiceWorkerResponse;
50 class WebURL; 50 class WebURL;
51 class WorkerClients; 51 class WorkerClients;
52 52
53 // See WebServiceWorkerContextClient for documentation for the methods in this c lass. 53 // See WebServiceWorkerContextClient for documentation for the methods in this c lass.
54 class ServiceWorkerGlobalScopeClient : public WillBeHeapSupplement<WorkerClients > { 54 class ServiceWorkerGlobalScopeClient : public WillBeHeapSupplement<WorkerClients > {
55 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeClient); 55 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeClient);
56 public: 56 public:
57 virtual ~ServiceWorkerGlobalScopeClient() { } 57 virtual ~ServiceWorkerGlobalScopeClient() { }
58 58
59 // Called from ServiceWorkerClients.
59 virtual void getClients(WebServiceWorkerClientsCallbacks*) = 0; 60 virtual void getClients(WebServiceWorkerClientsCallbacks*) = 0;
61 virtual void openWindow(const WebURL&, WebServiceWorkerClientCallbacks*) = 0 ;
62
60 virtual WebURL scope() const = 0; 63 virtual WebURL scope() const = 0;
61 virtual WebServiceWorkerCacheStorage* cacheStorage() const = 0; 64 virtual WebServiceWorkerCacheStorage* cacheStorage() const = 0;
62 65
63 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult ) = 0; 66 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult ) = 0;
64 // Calling didHandleFetchEvent without response means no response was 67 // Calling didHandleFetchEvent without response means no response was
65 // provided by the service worker in the fetch events, so fallback to native . 68 // provided by the service worker in the fetch events, so fallback to native .
66 virtual void didHandleFetchEvent(int fetchEventID) = 0; 69 virtual void didHandleFetchEvent(int fetchEventID) = 0;
67 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse&) = 0; 70 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse&) = 0;
68 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result) = 0; 71 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result) = 0;
69 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult) = 0; 72 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult) = 0;
(...skipping 10 matching lines...) Expand all
80 83
81 protected: 84 protected:
82 ServiceWorkerGlobalScopeClient() { } 85 ServiceWorkerGlobalScopeClient() { }
83 }; 86 };
84 87
85 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>); 88 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>);
86 89
87 } // namespace blink 90 } // namespace blink
88 91
89 #endif // ServiceWorkerGlobalScopeClient_h 92 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698