| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 DECLARE_VIRTUAL_TRACE(); | 71 DECLARE_VIRTUAL_TRACE(); |
| 72 | 72 |
| 73 ServiceWorker* controller() { return m_controller; } | 73 ServiceWorker* controller() { return m_controller; } |
| 74 ScriptPromise ready(ScriptState*); | 74 ScriptPromise ready(ScriptState*); |
| 75 WebServiceWorkerProvider* provider() { return m_provider; } | 75 WebServiceWorkerProvider* provider() { return m_provider; } |
| 76 | 76 |
| 77 void registerServiceWorkerImpl(ExecutionContext*, | 77 void registerServiceWorkerImpl(ExecutionContext*, |
| 78 const KURL& scriptURL, | 78 const KURL& scriptURL, |
| 79 const KURL& scope, | 79 const KURL& scope, |
| 80 bool useCache, |
| 80 std::unique_ptr<RegistrationCallbacks>); | 81 std::unique_ptr<RegistrationCallbacks>); |
| 81 | 82 |
| 82 ScriptPromise registerServiceWorker(ScriptState*, | 83 ScriptPromise registerServiceWorker(ScriptState*, |
| 83 const String& pattern, | 84 const String& pattern, |
| 84 const RegistrationOptions&); | 85 const RegistrationOptions&); |
| 85 ScriptPromise getRegistration(ScriptState*, const String& documentURL); | 86 ScriptPromise getRegistration(ScriptState*, const String& documentURL); |
| 86 ScriptPromise getRegistrations(ScriptState*); | 87 ScriptPromise getRegistrations(ScriptState*); |
| 87 | 88 |
| 88 void contextDestroyed(ExecutionContext*) override; | 89 void contextDestroyed(ExecutionContext*) override; |
| 89 | 90 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 116 | 117 |
| 117 WebServiceWorkerProvider* m_provider; | 118 WebServiceWorkerProvider* m_provider; |
| 118 Member<ServiceWorker> m_controller; | 119 Member<ServiceWorker> m_controller; |
| 119 Member<ReadyProperty> m_ready; | 120 Member<ReadyProperty> m_ready; |
| 120 Member<NavigatorServiceWorker> m_navigator; | 121 Member<NavigatorServiceWorker> m_navigator; |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace blink | 124 } // namespace blink |
| 124 | 125 |
| 125 #endif // ServiceWorkerContainer_h | 126 #endif // ServiceWorkerContainer_h |
| OLD | NEW |