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 controller_; } | 73 ServiceWorker* controller() { return controller_; } |
74 ScriptPromise ready(ScriptState*); | 74 ScriptPromise ready(ScriptState*); |
75 WebServiceWorkerProvider* Provider() { return provider_; } | 75 WebServiceWorkerProvider* Provider() { return provider_; } |
76 | 76 |
77 void RegisterServiceWorkerImpl(ExecutionContext*, | 77 void RegisterServiceWorkerImpl(ExecutionContext*, |
78 const KURL& script_url, | 78 const KURL& script_url, |
79 const KURL& scope, | 79 const KURL& scope, |
| 80 WebServiceWorkerUpdateViaCache, |
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& document_url); | 86 ScriptPromise getRegistration(ScriptState*, const String& document_url); |
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* provider_; | 118 WebServiceWorkerProvider* provider_; |
118 Member<ServiceWorker> controller_; | 119 Member<ServiceWorker> controller_; |
119 Member<ReadyProperty> ready_; | 120 Member<ReadyProperty> ready_; |
120 Member<NavigatorServiceWorker> navigator_; | 121 Member<NavigatorServiceWorker> navigator_; |
121 }; | 122 }; |
122 | 123 |
123 } // namespace blink | 124 } // namespace blink |
124 | 125 |
125 #endif // ServiceWorkerContainer_h | 126 #endif // ServiceWorkerContainer_h |
OLD | NEW |