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