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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 1701843002: ServiceWorker: Implement 'source' and 'origin' attributes of ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_focus_into_utils
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy); 68 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy);
69 USING_FAST_MALLOC_WILL_BE_REMOVED(ServiceWorkerGlobalScopeProxy); 69 USING_FAST_MALLOC_WILL_BE_REMOVED(ServiceWorkerGlobalScopeProxy);
70 public: 70 public:
71 static PassOwnPtrWillBeRawPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbed dedWorkerImpl&, Document&, WebServiceWorkerContextClient&); 71 static PassOwnPtrWillBeRawPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbed dedWorkerImpl&, Document&, WebServiceWorkerContextClient&);
72 ~ServiceWorkerGlobalScopeProxy() override; 72 ~ServiceWorkerGlobalScopeProxy() override;
73 73
74 // WebServiceWorkerContextProxy overrides: 74 // WebServiceWorkerContextProxy overrides:
75 void setRegistration(WebPassOwnPtr<WebServiceWorkerRegistration::Handle>) ov erride; 75 void setRegistration(WebPassOwnPtr<WebServiceWorkerRegistration::Handle>) ov erride;
76 void dispatchActivateEvent(int) override; 76 void dispatchActivateEvent(int) override;
77 void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient &, const WebString& message, const WebMessagePortChannelArray&) override; 77 void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient &, const WebString& message, const WebMessagePortChannelArray&) override;
78 void dispatchExtendableMessageEvent(int, const WebString& message, const Web MessagePortChannelArray&) override; 78 void dispatchExtendableMessageEvent(int eventID, const WebString& message, c onst WebMessagePortChannelArray&, const WebServiceWorkerClientInfo&) override;
79 void dispatchExtendableMessageEvent(int eventID, const WebString& message, c onst WebMessagePortChannelArray&, WebPassOwnPtr<WebServiceWorker::Handle>) overr ide;
79 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; 80 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override;
80 void dispatchForeignFetchEvent(int, const WebServiceWorkerRequest&) override ; 81 void dispatchForeignFetchEvent(int, const WebServiceWorkerRequest&) override ;
81 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r egionID, const WebCircularGeofencingRegion&) override; 82 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r egionID, const WebCircularGeofencingRegion&) override;
82 void dispatchInstallEvent(int) override; 83 void dispatchInstallEvent(int) override;
83 void dispatchMessageEvent(const WebString& message, const WebMessagePortChan nelArray&) override; 84 void dispatchMessageEvent(const WebString& message, const WebMessagePortChan nelArray&) override;
84 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo tificationData&, int actionIndex) override; 85 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo tificationData&, int actionIndex) override;
85 void dispatchNotificationCloseEvent(int, int64_t notificationID, const WebNo tificationData&) override; 86 void dispatchNotificationCloseEvent(int, int64_t notificationID, const WebNo tificationData&) override;
86 void dispatchPushEvent(int, const WebString& data) override; 87 void dispatchPushEvent(int, const WebString& data) override;
87 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c onst WebURL& targetURL, const WebString& origin, WebServicePortID) override; 88 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c onst WebURL& targetURL, const WebString& origin, WebServicePortID) override;
88 void dispatchSyncEvent(int, const WebSyncRegistration&, LastChanceOption) ov erride; 89 void dispatchSyncEvent(int, const WebSyncRegistration&, LastChanceOption) ov erride;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 KURL m_documentURL; 125 KURL m_documentURL;
125 126
126 WebServiceWorkerContextClient* m_client; 127 WebServiceWorkerContextClient* m_client;
127 128
128 RawPtrWillBeMember<ServiceWorkerGlobalScope> m_workerGlobalScope; 129 RawPtrWillBeMember<ServiceWorkerGlobalScope> m_workerGlobalScope;
129 }; 130 };
130 131
131 } // namespace blink 132 } // namespace blink
132 133
133 #endif // ServiceWorkerGlobalScopeProxy_h 134 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698