Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: content/child/service_worker/web_service_worker_registration_impl.h

Issue 623823002: Chrome side of passing on the service worker registration with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
32 void SetWaiting(blink::WebServiceWorker* service_worker); 32 void SetWaiting(blink::WebServiceWorker* service_worker);
33 void SetActive(blink::WebServiceWorker* service_worker); 33 void SetActive(blink::WebServiceWorker* service_worker);
34 34
35 void OnUpdateFound(); 35 void OnUpdateFound();
36 36
37 // blink::WebServiceWorkerRegistration overrides. 37 // blink::WebServiceWorkerRegistration overrides.
38 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); 38 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy);
39 virtual blink::WebServiceWorkerRegistrationProxy* proxy(); 39 virtual blink::WebServiceWorkerRegistrationProxy* proxy();
40 virtual blink::WebURL scope() const; 40 virtual blink::WebURL scope() const;
41 41
42 int64 registration_id() const;
43
42 private: 44 private:
43 enum QueuedTaskType { 45 enum QueuedTaskType {
44 INSTALLING, 46 INSTALLING,
45 WAITING, 47 WAITING,
46 ACTIVE, 48 ACTIVE,
47 UPDATE_FOUND, 49 UPDATE_FOUND,
48 }; 50 };
49 51
50 struct QueuedTask { 52 struct QueuedTask {
51 QueuedTask(QueuedTaskType type, 53 QueuedTask(QueuedTaskType type,
52 blink::WebServiceWorker* worker); 54 blink::WebServiceWorker* worker);
53 QueuedTaskType type; 55 QueuedTaskType type;
54 blink::WebServiceWorker* worker; 56 blink::WebServiceWorker* worker;
55 }; 57 };
56 58
57 void RunQueuedTasks(); 59 void RunQueuedTasks();
58 void ClearQueuedTasks(); 60 void ClearQueuedTasks();
59 61
60 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_; 62 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_;
61 blink::WebServiceWorkerRegistrationProxy* proxy_; 63 blink::WebServiceWorkerRegistrationProxy* proxy_;
62 64
63 std::vector<QueuedTask> queued_tasks_; 65 std::vector<QueuedTask> queued_tasks_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); 67 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl);
66 }; 68 };
67 69
68 } // namespace content 70 } // namespace content
69 71
70 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ 72 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698