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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // WebServiceWorkerProviderClient overrides. | 80 // WebServiceWorkerProviderClient overrides. |
81 virtual void setActive(blink::WebServiceWorker*) OVERRIDE; | 81 virtual void setActive(blink::WebServiceWorker*) OVERRIDE; |
82 virtual void setController(blink::WebServiceWorker*) OVERRIDE; | 82 virtual void setController(blink::WebServiceWorker*) OVERRIDE; |
83 virtual void setInstalling(blink::WebServiceWorker*) OVERRIDE; | 83 virtual void setInstalling(blink::WebServiceWorker*) OVERRIDE; |
84 virtual void setWaiting(blink::WebServiceWorker*) OVERRIDE; | 84 virtual void setWaiting(blink::WebServiceWorker*) OVERRIDE; |
85 virtual void dispatchMessageEvent(const blink::WebString& message, const bli
nk::WebMessagePortChannelArray&) OVERRIDE; | 85 virtual void dispatchMessageEvent(const blink::WebString& message, const bli
nk::WebMessagePortChannelArray&) OVERRIDE; |
86 | 86 |
87 private: | 87 private: |
88 explicit ServiceWorkerContainer(ExecutionContext*); | 88 explicit ServiceWorkerContainer(ExecutionContext*); |
89 | 89 |
90 typedef ScriptPromiseProperty<ServiceWorkerContainer*, RefPtrWillBeMember<Se
rviceWorker>, RefPtrWillBeMember<ServiceWorker> > ReadyProperty; | 90 typedef ScriptPromiseProperty<RawPtrWillBeMember<ServiceWorkerContainer>, Re
fPtrWillBeMember<ServiceWorker>, RefPtrWillBeMember<ServiceWorker> > ReadyProper
ty; |
91 PassRefPtrWillBeRawPtr<ReadyProperty> createReadyProperty(); | 91 PassRefPtrWillBeRawPtr<ReadyProperty> createReadyProperty(); |
92 void checkReadyChanged(PassRefPtrWillBeRawPtr<ServiceWorker> previousReadyWo
rker); | 92 void checkReadyChanged(PassRefPtrWillBeRawPtr<ServiceWorker> previousReadyWo
rker); |
93 | 93 |
94 blink::WebServiceWorkerProvider* m_provider; | 94 blink::WebServiceWorkerProvider* m_provider; |
95 RefPtrWillBeMember<ServiceWorker> m_active; | 95 RefPtrWillBeMember<ServiceWorker> m_active; |
96 RefPtrWillBeMember<ServiceWorker> m_controller; | 96 RefPtrWillBeMember<ServiceWorker> m_controller; |
97 RefPtrWillBeMember<ServiceWorker> m_installing; | 97 RefPtrWillBeMember<ServiceWorker> m_installing; |
98 RefPtrWillBeMember<ServiceWorker> m_waiting; | 98 RefPtrWillBeMember<ServiceWorker> m_waiting; |
99 RefPtrWillBeMember<ReadyProperty> m_ready; | 99 RefPtrWillBeMember<ReadyProperty> m_ready; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace WebCore | 102 } // namespace WebCore |
103 | 103 |
104 #endif // ServiceWorkerContainer_h | 104 #endif // ServiceWorkerContainer_h |
OLD | NEW |