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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "public/platform/WebCallbacks.h" | 34 #include "public/platform/WebCallbacks.h" |
35 #include "public/platform/WebVector.h" | 35 #include "public/platform/WebVector.h" |
36 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" | 36 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" |
37 | 37 |
38 #include <memory> | 38 #include <memory> |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class WebURL; | 42 class WebURL; |
43 class WebServiceWorker; | |
44 class WebServiceWorkerProviderClient; | 43 class WebServiceWorkerProviderClient; |
45 struct WebServiceWorkerError; | 44 struct WebServiceWorkerError; |
46 | 45 |
47 // Created on the main thread, and may be passed to another script context | 46 // Created on the main thread, and may be passed to another script context |
48 // thread (e.g. worker thread) later. All methods of this class must be called | 47 // thread (e.g. worker thread) later. All methods of this class must be called |
49 // on the single script context thread. | 48 // on the single script context thread. |
50 class WebServiceWorkerProvider { | 49 class WebServiceWorkerProvider { |
51 public: | 50 public: |
52 // Called when a client wants to start listening to the service worker | 51 // Called when a client wants to start listening to the service worker |
53 // events. Must be cleared before the client becomes invalid. | 52 // events. Must be cleared before the client becomes invalid. |
(...skipping 29 matching lines...) Expand all Loading... |
83 WebString* errorMessage) { | 82 WebString* errorMessage) { |
84 return false; | 83 return false; |
85 } | 84 } |
86 | 85 |
87 virtual ~WebServiceWorkerProvider() {} | 86 virtual ~WebServiceWorkerProvider() {} |
88 }; | 87 }; |
89 | 88 |
90 } // namespace blink | 89 } // namespace blink |
91 | 90 |
92 #endif | 91 #endif |
OLD | NEW |