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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 1632113004: ServiceWorker: Add initial implementation of ExtendableMessageEvent behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 WebURL ServiceWorkerGlobalScopeClientImpl::scope() const 70 WebURL ServiceWorkerGlobalScopeClientImpl::scope() const
71 { 71 {
72 return m_client.scope(); 72 return m_client.scope();
73 } 73 }
74 74
75 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web ServiceWorkerEventResult result) 75 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web ServiceWorkerEventResult result)
76 { 76 {
77 m_client.didHandleActivateEvent(eventID, result); 77 m_client.didHandleActivateEvent(eventID, result);
78 } 78 }
79 79
80 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent(int eve ntID, WebServiceWorkerEventResult result)
81 {
82 m_client.didHandleExtendableMessageEvent(eventID, result);
83 }
84
80 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID) 85 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID)
81 { 86 {
82 m_client.didHandleFetchEvent(fetchEventID); 87 m_client.didHandleFetchEvent(fetchEventID);
83 } 88 }
84 89
85 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID, c onst WebServiceWorkerResponse& webResponse) 90 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID, c onst WebServiceWorkerResponse& webResponse)
86 { 91 {
87 m_client.didHandleFetchEvent(fetchEventID, webResponse); 92 m_client.didHandleFetchEvent(fetchEventID, webResponse);
88 } 93 }
89 94
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 { 146 {
142 m_client.registerForeignFetchScopes(subScopes); 147 m_client.registerForeignFetchScopes(subScopes);
143 } 148 }
144 149
145 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client) 150 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client)
146 : m_client(client) 151 : m_client(client)
147 { 152 {
148 } 153 }
149 154
150 } // namespace blink 155 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698