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

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

Issue 1221643014: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Chromium 2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IMPL_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_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 27 matching lines...) Expand all
38 WebServiceWorkerImpl(scoped_ptr<ServiceWorkerHandleReference> handle_ref, 38 WebServiceWorkerImpl(scoped_ptr<ServiceWorkerHandleReference> handle_ref,
39 ThreadSafeSender* thread_safe_sender); 39 ThreadSafeSender* thread_safe_sender);
40 virtual ~WebServiceWorkerImpl(); 40 virtual ~WebServiceWorkerImpl();
41 41
42 void OnStateChanged(blink::WebServiceWorkerState new_state); 42 void OnStateChanged(blink::WebServiceWorkerState new_state);
43 43
44 virtual void setProxy(blink::WebServiceWorkerProxy* proxy); 44 virtual void setProxy(blink::WebServiceWorkerProxy* proxy);
45 virtual blink::WebServiceWorkerProxy* proxy(); 45 virtual blink::WebServiceWorkerProxy* proxy();
46 virtual blink::WebURL url() const; 46 virtual blink::WebURL url() const;
47 virtual blink::WebServiceWorkerState state() const; 47 virtual blink::WebServiceWorkerState state() const;
48 virtual blink::WebString id() const;
48 virtual void postMessage(const blink::WebString& message, 49 virtual void postMessage(const blink::WebString& message,
49 blink::WebMessagePortChannelArray* channels); 50 blink::WebMessagePortChannelArray* channels);
50 virtual void terminate(); 51 virtual void terminate();
51 52
52 private: 53 private:
53 scoped_ptr<ServiceWorkerHandleReference> handle_ref_; 54 scoped_ptr<ServiceWorkerHandleReference> handle_ref_;
54 blink::WebServiceWorkerState state_; 55 blink::WebServiceWorkerState state_;
55 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 56 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
56 blink::WebServiceWorkerProxy* proxy_; 57 blink::WebServiceWorkerProxy* proxy_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl); 59 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl);
59 }; 60 };
60 61
61 } // namespace content 62 } // namespace content
62 63
63 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ 64 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698