| 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 <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 12 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 13 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRegistration.h" | 16 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRegistration.h" |
| 14 | 17 |
| 15 namespace blink { | 18 namespace blink { |
| 16 class WebServiceWorkerRegistrationProxy; | 19 class WebServiceWorkerRegistrationProxy; |
| 17 } | 20 } |
| 18 | 21 |
| 19 namespace content { | 22 namespace content { |
| 20 | 23 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 | 48 |
| 46 // blink::WebServiceWorkerRegistration overrides. | 49 // blink::WebServiceWorkerRegistration overrides. |
| 47 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; | 50 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; |
| 48 blink::WebServiceWorkerRegistrationProxy* proxy() override; | 51 blink::WebServiceWorkerRegistrationProxy* proxy() override; |
| 49 blink::WebURL scope() const override; | 52 blink::WebURL scope() const override; |
| 50 void update(blink::WebServiceWorkerProvider* provider, | 53 void update(blink::WebServiceWorkerProvider* provider, |
| 51 WebServiceWorkerUpdateCallbacks* callbacks) override; | 54 WebServiceWorkerUpdateCallbacks* callbacks) override; |
| 52 void unregister(blink::WebServiceWorkerProvider* provider, | 55 void unregister(blink::WebServiceWorkerProvider* provider, |
| 53 WebServiceWorkerUnregistrationCallbacks* callbacks) override; | 56 WebServiceWorkerUnregistrationCallbacks* callbacks) override; |
| 54 | 57 |
| 55 int64 registration_id() const; | 58 int64_t registration_id() const; |
| 56 | 59 |
| 57 using WebServiceWorkerRegistrationHandle = | 60 using WebServiceWorkerRegistrationHandle = |
| 58 blink::WebServiceWorkerRegistration::Handle; | 61 blink::WebServiceWorkerRegistration::Handle; |
| 59 | 62 |
| 60 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to | 63 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to |
| 61 // the given WebServiceWorkerRegistrationImpl object. | 64 // the given WebServiceWorkerRegistrationImpl object. |
| 62 static blink::WebPassOwnPtr<WebServiceWorkerRegistrationHandle> CreateHandle( | 65 static blink::WebPassOwnPtr<WebServiceWorkerRegistrationHandle> CreateHandle( |
| 63 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); | 66 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); |
| 64 | 67 |
| 65 // Same with CreateHandle(), but returns a raw pointer to the handle w/ its | 68 // Same with CreateHandle(), but returns a raw pointer to the handle w/ its |
| (...skipping 28 matching lines...) Expand all Loading... |
| 94 blink::WebServiceWorkerRegistrationProxy* proxy_; | 97 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 95 | 98 |
| 96 std::vector<QueuedTask> queued_tasks_; | 99 std::vector<QueuedTask> queued_tasks_; |
| 97 | 100 |
| 98 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 101 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace content | 104 } // namespace content |
| 102 | 105 |
| 103 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 106 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |