OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebServiceWorkerProvider_h | 31 #ifndef WebServiceWorkerProvider_h |
32 #define WebServiceWorkerProvider_h | 32 #define WebServiceWorkerProvider_h |
33 | 33 |
34 #include "public/platform/WebCallbacks.h" | 34 #include "public/platform/WebCallbacks.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class WebString; | |
39 class WebURL; | 38 class WebURL; |
40 class WebServiceWorker; | 39 class WebServiceWorker; |
41 class WebServiceWorkerProviderClient; | 40 class WebServiceWorkerProviderClient; |
42 class WebServiceWorkerRegistration; | 41 class WebServiceWorkerRegistration; |
43 struct WebServiceWorkerError; | 42 struct WebServiceWorkerError; |
44 | 43 |
45 // Created on the main thread, and may be passed to another script context | 44 // Created on the main thread, and may be passed to another script context |
46 // thread (e.g. worker thread) later. All methods of this class must be called | 45 // thread (e.g. worker thread) later. All methods of this class must be called |
47 // on the single script context thread. | 46 // on the single script context thread. |
48 class WebServiceWorkerProvider { | 47 class WebServiceWorkerProvider { |
(...skipping 14 matching lines...) Expand all Loading... |
63 virtual void unregisterServiceWorker(const WebURL& pattern, WebServiceWorker
UnregistrationCallbacks*) { } | 62 virtual void unregisterServiceWorker(const WebURL& pattern, WebServiceWorker
UnregistrationCallbacks*) { } |
64 | 63 |
65 virtual void getRegistration(const WebURL& documentURL, WebServiceWorkerGetR
egistrationCallbacks*) { } | 64 virtual void getRegistration(const WebURL& documentURL, WebServiceWorkerGetR
egistrationCallbacks*) { } |
66 | 65 |
67 virtual ~WebServiceWorkerProvider() { } | 66 virtual ~WebServiceWorkerProvider() { } |
68 }; | 67 }; |
69 | 68 |
70 } // namespace blink | 69 } // namespace blink |
71 | 70 |
72 #endif | 71 #endif |
OLD | NEW |