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

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

Issue 1216093003: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Blink 1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/web/WebSharedWorkerImpl.h ('k') | public/platform/WebServiceWorker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 DenyCrossOriginRequests, 200 DenyCrossOriginRequests,
201 bind(&WebSharedWorkerImpl::didReceiveScriptLoaderResponse, this), 201 bind(&WebSharedWorkerImpl::didReceiveScriptLoaderResponse, this),
202 bind(&WebSharedWorkerImpl::onScriptLoaderFinished, this)); 202 bind(&WebSharedWorkerImpl::onScriptLoaderFinished, this));
203 } 203 }
204 204
205 bool WebSharedWorkerImpl::isControlledByServiceWorker(WebDataSource& dataSource) 205 bool WebSharedWorkerImpl::isControlledByServiceWorker(WebDataSource& dataSource)
206 { 206 {
207 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d ataSource); 207 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d ataSource);
208 } 208 }
209 209
210 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource) 210 std::string WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource)
211 { 211 {
212 if (!m_networkProvider) 212 if (!m_networkProvider)
213 return -1; 213 return std::string();
214 return m_networkProvider->serviceWorkerID(dataSource); 214 return m_networkProvider->serviceWorkerID(dataSource);
215 } 215 }
216 216
217 void WebSharedWorkerImpl::sendProtocolMessage(int callId, const WebString& messa ge, const WebString& state) 217 void WebSharedWorkerImpl::sendProtocolMessage(int callId, const WebString& messa ge, const WebString& state)
218 { 218 {
219 m_client->sendDevToolsMessage(callId, message, state); 219 m_client->sendDevToolsMessage(callId, message, state);
220 } 220 }
221 221
222 void WebSharedWorkerImpl::resumeStartup() 222 void WebSharedWorkerImpl::resumeStartup()
223 { 223 {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 if (devtoolsAgent) 411 if (devtoolsAgent)
412 devtoolsAgent->dispatchOnInspectorBackend(message); 412 devtoolsAgent->dispatchOnInspectorBackend(message);
413 } 413 }
414 414
415 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 415 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
416 { 416 {
417 return new WebSharedWorkerImpl(client); 417 return new WebSharedWorkerImpl(client);
418 } 418 }
419 419
420 } // namespace blink 420 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebSharedWorkerImpl.h ('k') | public/platform/WebServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698