| 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 21 matching lines...) Expand all Loading... |
| 32 void SetInstalling(blink::WebServiceWorker* service_worker); | 32 void SetInstalling(blink::WebServiceWorker* service_worker); |
| 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 | 43 |
| 43 int64 registration_id() const; | 44 int64 registration_id() const; |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 enum QueuedTaskType { | 47 enum QueuedTaskType { |
| 47 INSTALLING, | 48 INSTALLING, |
| 48 WAITING, | 49 WAITING, |
| 49 ACTIVE, | 50 ACTIVE, |
| 50 UPDATE_FOUND, | 51 UPDATE_FOUND, |
| 51 }; | 52 }; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 64 blink::WebServiceWorkerRegistrationProxy* proxy_; | 65 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 65 | 66 |
| 66 std::vector<QueuedTask> queued_tasks_; | 67 std::vector<QueuedTask> queued_tasks_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 69 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace content | 72 } // namespace content |
| 72 | 73 |
| 73 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 74 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |