| Index: public/web/WebServiceWorkerNetworkProvider.h
|
| diff --git a/public/platform/WebWaitableEvent.h b/public/web/WebServiceWorkerNetworkProvider.h
|
| similarity index 72%
|
| copy from public/platform/WebWaitableEvent.h
|
| copy to public/web/WebServiceWorkerNetworkProvider.h
|
| index f1b59f0a263afe5afd887863e98d52d9cfa3e95e..a48be056d0a17a964feb559b0000c0413d7dce1c 100644
|
| --- a/public/platform/WebWaitableEvent.h
|
| +++ b/public/web/WebServiceWorkerNetworkProvider.h
|
| @@ -28,28 +28,25 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebWaitableEvent_h
|
| -#define WebWaitableEvent_h
|
| -
|
| -#include "WebCommon.h"
|
| +#ifndef WebServiceWorkerNetworkProvider_h
|
| +#define WebServiceWorkerNetworkProvider_h
|
|
|
| namespace blink {
|
|
|
| -// Provides a thread synchronization that can be used to allow one thread to
|
| -// wait until another thread to finish some work.
|
| -class WebWaitableEvent {
|
| -public:
|
| - virtual ~WebWaitableEvent() { }
|
| +class WebDataSource;
|
| +class WebURLRequest;
|
|
|
| - // Waits indefinitely for the event to be signaled.
|
| - virtual void wait() = 0;
|
| +// This interface is implemented by the client and is only called on the main thread.
|
| +class WebServiceWorkerNetworkProvider {
|
| +public:
|
| + virtual ~WebServiceWorkerNetworkProvider() { }
|
|
|
| - // Puts the event in the signaled state. Causing any thread blocked on Wait
|
| - // to be woken up. The event state is reset to non-signaled after
|
| - // a waiting thread has been released.
|
| - virtual void signal() = 0;
|
| + // A request is about to be sent out, and the client may modify it. Request
|
| + // is writable, and changes to the URL, for example, will change the request
|
| + // made.
|
| + virtual void willSendRequest(blink::WebDataSource*, blink::WebURLRequest&) { }
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // WebWaitableEvent_h
|
| +#endif // WebServiceWorkerNetworkProvider_h
|
|
|