| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 WebCallbacks<std::unique_ptr<WebServiceWorkerRegistration::Handle>, | 60 WebCallbacks<std::unique_ptr<WebServiceWorkerRegistration::Handle>, |
| 61 const WebServiceWorkerError&>; | 61 const WebServiceWorkerError&>; |
| 62 | 62 |
| 63 // Each element's ownership is transferred. | 63 // Each element's ownership is transferred. |
| 64 using WebServiceWorkerGetRegistrationsCallbacks = WebCallbacks< | 64 using WebServiceWorkerGetRegistrationsCallbacks = WebCallbacks< |
| 65 std::unique_ptr<WebVector<WebServiceWorkerRegistration::Handle*>>, | 65 std::unique_ptr<WebVector<WebServiceWorkerRegistration::Handle*>>, |
| 66 const WebServiceWorkerError&>; | 66 const WebServiceWorkerError&>; |
| 67 using WebServiceWorkerGetRegistrationForReadyCallbacks = | 67 using WebServiceWorkerGetRegistrationForReadyCallbacks = |
| 68 WebCallbacks<std::unique_ptr<WebServiceWorkerRegistration::Handle>, void>; | 68 WebCallbacks<std::unique_ptr<WebServiceWorkerRegistration::Handle>, void>; |
| 69 | 69 |
| 70 virtual void registerServiceWorker(const WebURL& pattern, | 70 virtual void registerServiceWorker( |
| 71 const WebURL& scriptUrl, | 71 const WebURL& pattern, |
| 72 WebServiceWorkerRegistrationCallbacks*) {} | 72 const WebURL& scriptUrl, |
| 73 virtual void getRegistration(const WebURL& documentURL, | 73 std::unique_ptr<WebServiceWorkerRegistrationCallbacks>) {} |
| 74 WebServiceWorkerGetRegistrationCallbacks*) {} | 74 virtual void getRegistration( |
| 75 virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*) {} | 75 const WebURL& documentURL, |
| 76 std::unique_ptr<WebServiceWorkerGetRegistrationCallbacks>) {} |
| 77 virtual void getRegistrations( |
| 78 std::unique_ptr<WebServiceWorkerGetRegistrationsCallbacks>) {} |
| 76 virtual void getRegistrationForReady( | 79 virtual void getRegistrationForReady( |
| 77 WebServiceWorkerGetRegistrationForReadyCallbacks*) {} | 80 std::unique_ptr<WebServiceWorkerGetRegistrationForReadyCallbacks>) {} |
| 78 virtual bool validateScopeAndScriptURL(const WebURL& scope, | 81 virtual bool validateScopeAndScriptURL(const WebURL& scope, |
| 79 const WebURL& scriptURL, | 82 const WebURL& scriptURL, |
| 80 WebString* errorMessage) { | 83 WebString* errorMessage) { |
| 81 return false; | 84 return false; |
| 82 } | 85 } |
| 83 | 86 |
| 84 virtual ~WebServiceWorkerProvider() {} | 87 virtual ~WebServiceWorkerProvider() {} |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 } // namespace blink | 90 } // namespace blink |
| 88 | 91 |
| 89 #endif | 92 #endif |
| OLD | NEW |