OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 void SetWaiting(blink::WebServiceWorker* service_worker); | 33 void SetWaiting(blink::WebServiceWorker* service_worker); |
34 void SetActive(blink::WebServiceWorker* service_worker); | 34 void SetActive(blink::WebServiceWorker* service_worker); |
35 | 35 |
36 void OnUpdateFound(); | 36 void OnUpdateFound(); |
37 | 37 |
38 // blink::WebServiceWorkerRegistration overrides. | 38 // blink::WebServiceWorkerRegistration overrides. |
39 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); | 39 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); |
40 virtual blink::WebServiceWorkerRegistrationProxy* proxy(); | 40 virtual blink::WebServiceWorkerRegistrationProxy* proxy(); |
41 virtual blink::WebURL scope() const; | 41 virtual blink::WebURL scope() const; |
42 virtual void update(blink::WebServiceWorkerProvider* provider); | 42 virtual void update(blink::WebServiceWorkerProvider* provider); |
| 43 virtual void unregister(blink::WebServiceWorkerProvider* provider, |
| 44 WebServiceWorkerUnregistrationCallbacks* callbacks); |
43 | 45 |
44 int64 registration_id() const; | 46 int64 registration_id() const; |
45 | 47 |
46 private: | 48 private: |
47 enum QueuedTaskType { | 49 enum QueuedTaskType { |
48 INSTALLING, | 50 INSTALLING, |
49 WAITING, | 51 WAITING, |
50 ACTIVE, | 52 ACTIVE, |
51 UPDATE_FOUND, | 53 UPDATE_FOUND, |
52 }; | 54 }; |
(...skipping 12 matching lines...) Expand all Loading... |
65 blink::WebServiceWorkerRegistrationProxy* proxy_; | 67 blink::WebServiceWorkerRegistrationProxy* proxy_; |
66 | 68 |
67 std::vector<QueuedTask> queued_tasks_; | 69 std::vector<QueuedTask> queued_tasks_; |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 71 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
70 }; | 72 }; |
71 | 73 |
72 } // namespace content | 74 } // namespace content |
73 | 75 |
74 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 76 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
OLD | NEW |