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

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

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeClientImpl.h ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698