OLD | NEW |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "modules/serviceworkers/InstallPhaseEvent.h" | 44 #include "modules/serviceworkers/InstallPhaseEvent.h" |
45 #include "modules/serviceworkers/WaitUntilObserver.h" | 45 #include "modules/serviceworkers/WaitUntilObserver.h" |
46 #include "platform/NotImplemented.h" | 46 #include "platform/NotImplemented.h" |
47 #include "public/platform/WebServiceWorkerRequest.h" | 47 #include "public/platform/WebServiceWorkerRequest.h" |
48 #include "public/web/WebSerializedScriptValue.h" | 48 #include "public/web/WebSerializedScriptValue.h" |
49 #include "public/web/WebServiceWorkerContextClient.h" | 49 #include "public/web/WebServiceWorkerContextClient.h" |
50 #include "web/WebEmbeddedWorkerImpl.h" | 50 #include "web/WebEmbeddedWorkerImpl.h" |
51 #include "wtf/Functional.h" | 51 #include "wtf/Functional.h" |
52 #include "wtf/PassOwnPtr.h" | 52 #include "wtf/PassOwnPtr.h" |
53 | 53 |
54 using namespace blink; | |
55 | |
56 namespace blink { | 54 namespace blink { |
57 | 55 |
58 PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(
WebEmbeddedWorkerImpl& embeddedWorker, ExecutionContext& executionContext, WebSe
rviceWorkerContextClient& client) | 56 PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(
WebEmbeddedWorkerImpl& embeddedWorker, ExecutionContext& executionContext, WebSe
rviceWorkerContextClient& client) |
59 { | 57 { |
60 return adoptPtr(new ServiceWorkerGlobalScopeProxy(embeddedWorker, executionC
ontext, client)); | 58 return adoptPtr(new ServiceWorkerGlobalScopeProxy(embeddedWorker, executionC
ontext, client)); |
61 } | 59 } |
62 | 60 |
63 ServiceWorkerGlobalScopeProxy::~ServiceWorkerGlobalScopeProxy() | 61 ServiceWorkerGlobalScopeProxy::~ServiceWorkerGlobalScopeProxy() |
64 { | 62 { |
65 } | 63 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 158 |
161 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextC
lient& client) | 159 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextC
lient& client) |
162 : m_embeddedWorker(embeddedWorker) | 160 : m_embeddedWorker(embeddedWorker) |
163 , m_executionContext(executionContext) | 161 , m_executionContext(executionContext) |
164 , m_client(client) | 162 , m_client(client) |
165 , m_workerGlobalScope(0) | 163 , m_workerGlobalScope(0) |
166 { | 164 { |
167 } | 165 } |
168 | 166 |
169 } // namespace blink | 167 } // namespace blink |
OLD | NEW |