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

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

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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) 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 RefPtr<WaitUntilObserver> observer = WaitUntilObserver::create(m_workerGloba lScope, WaitUntilObserver::Activate, eventID); 77 RefPtr<WaitUntilObserver> observer = WaitUntilObserver::create(m_workerGloba lScope, WaitUntilObserver::Activate, eventID);
78 observer->willDispatchEvent(); 78 observer->willDispatchEvent();
79 m_workerGlobalScope->dispatchEvent(InstallPhaseEvent::create(EventTypeNames: :activate, EventInit(), observer)); 79 m_workerGlobalScope->dispatchEvent(InstallPhaseEvent::create(EventTypeNames: :activate, EventInit(), observer));
80 observer->didDispatchEvent(); 80 observer->didDispatchEvent();
81 } 81 }
82 82
83 void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(int eventID, const WebSer viceWorkerRequest& webRequest) 83 void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(int eventID, const WebSer viceWorkerRequest& webRequest)
84 { 84 {
85 ASSERT(m_workerGlobalScope); 85 ASSERT(m_workerGlobalScope);
86 RefPtr<RespondWithObserver> observer = RespondWithObserver::create(m_workerG lobalScope, eventID); 86 RefPtr<RespondWithObserver> observer = RespondWithObserver::create(m_workerG lobalScope, eventID);
87 RefPtrWillBeRawPtr<Request> request = Request::create(webRequest); 87 Request* request = Request::create(webRequest);
88 RefPtrWillBeRawPtr<FetchEvent> fetchEvent(FetchEvent::create(observer, reque st)); 88 RefPtrWillBeRawPtr<FetchEvent> fetchEvent(FetchEvent::create(observer, reque st));
89 fetchEvent->setIsReload(webRequest.isReload()); 89 fetchEvent->setIsReload(webRequest.isReload());
90 m_workerGlobalScope->dispatchEvent(fetchEvent.release()); 90 m_workerGlobalScope->dispatchEvent(fetchEvent.release());
91 observer->didDispatchEvent(); 91 observer->didDispatchEvent();
92 } 92 }
93 93
94 void ServiceWorkerGlobalScopeProxy::dispatchMessageEvent(const WebString& messag e, const WebMessagePortChannelArray& webChannels) 94 void ServiceWorkerGlobalScopeProxy::dispatchMessageEvent(const WebString& messag e, const WebMessagePortChannelArray& webChannels)
95 { 95 {
96 ASSERT(m_workerGlobalScope); 96 ASSERT(m_workerGlobalScope);
97 97
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm pl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextC lient& client) 159 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm pl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextC lient& client)
160 : m_embeddedWorker(embeddedWorker) 160 : m_embeddedWorker(embeddedWorker)
161 , m_executionContext(executionContext) 161 , m_executionContext(executionContext)
162 , m_client(client) 162 , m_client(client)
163 , m_workerGlobalScope(0) 163 , m_workerGlobalScope(0)
164 { 164 {
165 } 165 }
166 166
167 } // namespace blink 167 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698