Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(838)

Unified Diff: public/web/WebServiceWorkerNetworkProvider.h

Issue 1262943002: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 2 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebServiceWorkerContextProxy.h ('k') | public/web/modules/serviceworker/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebServiceWorkerNetworkProvider.h
diff --git a/public/web/WebServiceWorkerNetworkProvider.h b/public/web/WebServiceWorkerNetworkProvider.h
index d53cf96be8f35bcb7c930db026f819471e958d38..28e84ffaec6411b6bacbeea1dfea94b46ee7653c 100644
--- a/public/web/WebServiceWorkerNetworkProvider.h
+++ b/public/web/WebServiceWorkerNetworkProvider.h
@@ -28,36 +28,4 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebServiceWorkerNetworkProvider_h
-#define WebServiceWorkerNetworkProvider_h
-
-namespace blink {
-
-class WebDataSource;
-class WebURLRequest;
-
-// This interface is implemented by the client and is only called on the main thread.
-// Used by ServiceWorker and SharedWorker. isControlledByServiceWorker() and
-// serviceWorkerID() are to be implemented only by SharedWorker's provider,
-// as they are needed only for controllee workers.
-class WebServiceWorkerNetworkProvider {
-public:
- virtual ~WebServiceWorkerNetworkProvider() { }
-
- // 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(WebDataSource*, WebURLRequest&) { }
-
- // Whether the document associated with WebDataSource is controlled by the
- // ServiceWorker.
- virtual bool isControlledByServiceWorker(WebDataSource&) { return false; }
-
- // Returns an identifier of the service worker controlling the document
- // associated with the WebDataSource.
- virtual int64_t serviceWorkerID(WebDataSource&) { return -1; }
-};
-
-} // namespace blink
-
-#endif // WebServiceWorkerNetworkProvider_h
+#include "public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h"
« no previous file with comments | « public/web/WebServiceWorkerContextProxy.h ('k') | public/web/modules/serviceworker/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698