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

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

Issue 470843002: ServiceWorker: Implement WebServiceWorkerRegistrationImpl::proxy() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « content/child/service_worker/web_service_worker_registration_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/child/service_worker/web_service_worker_registration_impl.h" 5 #include "content/child/service_worker/web_service_worker_registration_impl.h"
6 6
7 #include "content/child/service_worker/service_worker_dispatcher.h" 7 #include "content/child/service_worker/service_worker_dispatcher.h"
8 #include "content/child/service_worker/service_worker_registration_handle_refere nce.h" 8 #include "content/child/service_worker/service_worker_registration_handle_refere nce.h"
9 #include "content/common/service_worker/service_worker_types.h" 9 #include "content/common/service_worker/service_worker_types.h"
10 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistrationProxy.h " 10 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistrationProxy.h "
(...skipping 23 matching lines...) Expand all
34 void WebServiceWorkerRegistrationImpl::OnUpdateFound() { 34 void WebServiceWorkerRegistrationImpl::OnUpdateFound() {
35 DCHECK(proxy_); 35 DCHECK(proxy_);
36 proxy_->dispatchUpdateFoundEvent(); 36 proxy_->dispatchUpdateFoundEvent();
37 } 37 }
38 38
39 void WebServiceWorkerRegistrationImpl::setProxy( 39 void WebServiceWorkerRegistrationImpl::setProxy(
40 blink::WebServiceWorkerRegistrationProxy* proxy) { 40 blink::WebServiceWorkerRegistrationProxy* proxy) {
41 proxy_ = proxy; 41 proxy_ = proxy;
42 } 42 }
43 43
44 blink::WebServiceWorkerRegistrationProxy*
45 WebServiceWorkerRegistrationImpl::proxy() {
46 return proxy_;
47 }
48
44 void WebServiceWorkerRegistrationImpl::setInstalling( 49 void WebServiceWorkerRegistrationImpl::setInstalling(
45 blink::WebServiceWorker* service_worker) { 50 blink::WebServiceWorker* service_worker) {
46 DCHECK(proxy_); 51 DCHECK(proxy_);
47 proxy_->setInstalling(service_worker); 52 proxy_->setInstalling(service_worker);
48 } 53 }
49 54
50 void WebServiceWorkerRegistrationImpl::setWaiting( 55 void WebServiceWorkerRegistrationImpl::setWaiting(
51 blink::WebServiceWorker* service_worker) { 56 blink::WebServiceWorker* service_worker) {
52 DCHECK(proxy_); 57 DCHECK(proxy_);
53 proxy_->setWaiting(service_worker); 58 proxy_->setWaiting(service_worker);
54 } 59 }
55 60
56 void WebServiceWorkerRegistrationImpl::setActive( 61 void WebServiceWorkerRegistrationImpl::setActive(
57 blink::WebServiceWorker* service_worker) { 62 blink::WebServiceWorker* service_worker) {
58 DCHECK(proxy_); 63 DCHECK(proxy_);
59 proxy_->setActive(service_worker); 64 proxy_->setActive(service_worker);
60 } 65 }
61 66
62 blink::WebURL WebServiceWorkerRegistrationImpl::scope() const { 67 blink::WebURL WebServiceWorkerRegistrationImpl::scope() const {
63 return handle_ref_->scope(); 68 return handle_ref_->scope();
64 } 69 }
65 70
66 } // namespace content 71 } // namespace content
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_registration_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698