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

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

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 | « no previous file | content/child/service_worker/web_service_worker_registration_impl.cc » ('j') | 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 #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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" 9 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h"
10 10
(...skipping 11 matching lines...) Expand all
22 class WebServiceWorkerRegistrationImpl 22 class WebServiceWorkerRegistrationImpl
23 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { 23 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) {
24 public: 24 public:
25 explicit WebServiceWorkerRegistrationImpl( 25 explicit WebServiceWorkerRegistrationImpl(
26 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); 26 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref);
27 virtual ~WebServiceWorkerRegistrationImpl(); 27 virtual ~WebServiceWorkerRegistrationImpl();
28 28
29 void OnUpdateFound(); 29 void OnUpdateFound();
30 30
31 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); 31 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy);
32 virtual blink::WebServiceWorkerRegistrationProxy* proxy();
32 virtual void setInstalling(blink::WebServiceWorker* service_worker); 33 virtual void setInstalling(blink::WebServiceWorker* service_worker);
33 virtual void setWaiting(blink::WebServiceWorker* service_worker); 34 virtual void setWaiting(blink::WebServiceWorker* service_worker);
34 virtual void setActive(blink::WebServiceWorker* service_worker); 35 virtual void setActive(blink::WebServiceWorker* service_worker);
35 36
36 virtual blink::WebURL scope() const; 37 virtual blink::WebURL scope() const;
37 38
38 private: 39 private:
39 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_; 40 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_;
40 blink::WebServiceWorkerRegistrationProxy* proxy_; 41 blink::WebServiceWorkerRegistrationProxy* proxy_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); 43 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl);
43 }; 44 };
44 45
45 } // namespace content 46 } // namespace content
46 47
47 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ 48 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/service_worker/web_service_worker_registration_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698