OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web
ServiceWorkerEventResult result) | 67 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web
ServiceWorkerEventResult result) |
68 { | 68 { |
69 m_client.didHandleActivateEvent(eventID, result); | 69 m_client.didHandleActivateEvent(eventID, result); |
70 } | 70 } |
71 | 71 |
72 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(int installEventI
D, WebServiceWorkerEventResult result) | 72 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(int installEventI
D, WebServiceWorkerEventResult result) |
73 { | 73 { |
74 m_client.didHandleInstallEvent(installEventID, result); | 74 m_client.didHandleInstallEvent(installEventID, result); |
75 } | 75 } |
76 | 76 |
77 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID, P
assRefPtrWillBeRawPtr<Response> response) | 77 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID, R
esponse* response) |
78 { | 78 { |
79 if (!response) { | 79 if (!response) { |
80 m_client.didHandleFetchEvent(fetchEventID); | 80 m_client.didHandleFetchEvent(fetchEventID); |
81 return; | 81 return; |
82 } | 82 } |
83 | 83 |
84 WebServiceWorkerResponse webResponse; | 84 WebServiceWorkerResponse webResponse; |
85 response->populateWebServiceWorkerResponse(webResponse); | 85 response->populateWebServiceWorkerResponse(webResponse); |
86 if (webResponse.status() == 0) { | 86 if (webResponse.status() == 0) { |
87 // The status code is 0 means a network error. | 87 // The status code is 0 means a network error. |
(...skipping 12 matching lines...) Expand all Loading... |
100 { | 100 { |
101 m_client.postMessageToClient(clientID, message, webChannels.leakPtr()); | 101 m_client.postMessageToClient(clientID, message, webChannels.leakPtr()); |
102 } | 102 } |
103 | 103 |
104 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic
eWorkerContextClient& client) | 104 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic
eWorkerContextClient& client) |
105 : m_client(client) | 105 : m_client(client) |
106 { | 106 { |
107 } | 107 } |
108 | 108 |
109 } // namespace blink | 109 } // namespace blink |
OLD | NEW |