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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // EventTarget overrides. | 83 // EventTarget overrides. |
84 virtual ExecutionContext* executionContext() const override { return Context
LifecycleObserver::executionContext(); } | 84 virtual ExecutionContext* executionContext() const override { return Context
LifecycleObserver::executionContext(); } |
85 virtual const AtomicString& interfaceName() const override; | 85 virtual const AtomicString& interfaceName() const override; |
86 | 86 |
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(controllerchange); | 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(controllerchange); |
88 | 88 |
89 private: | 89 private: |
90 explicit ServiceWorkerContainer(ExecutionContext*); | 90 explicit ServiceWorkerContainer(ExecutionContext*); |
91 | 91 |
92 typedef ScriptPromiseProperty<Member<ServiceWorkerContainer>, Member<Service
WorkerRegistration>, Member<ServiceWorkerRegistration> > ReadyProperty; | 92 typedef ScriptPromiseProperty<Member<ServiceWorkerContainer>, Member<Service
WorkerRegistration>, Member<ServiceWorkerRegistration>> ReadyProperty; |
93 ReadyProperty* createReadyProperty(); | 93 ReadyProperty* createReadyProperty(); |
94 | 94 |
95 WebServiceWorkerProvider* m_provider; | 95 WebServiceWorkerProvider* m_provider; |
96 RefPtrWillBeMember<ServiceWorker> m_controller; | 96 RefPtrWillBeMember<ServiceWorker> m_controller; |
97 Member<ServiceWorkerRegistration> m_readyRegistration; | 97 Member<ServiceWorkerRegistration> m_readyRegistration; |
98 Member<ReadyProperty> m_ready; | 98 Member<ReadyProperty> m_ready; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 | 102 |
103 #endif // ServiceWorkerContainer_h | 103 #endif // ServiceWorkerContainer_h |
OLD | NEW |