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

Unified Diff: public/web/WebServiceWorkerContextProxy.h

Issue 61763004: Add EmbeddedWorker interfaces in Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
Index: public/web/WebServiceWorkerContextProxy.h
diff --git a/Source/web/MIDIClientProxy.h b/public/web/WebServiceWorkerContextProxy.h
similarity index 73%
copy from Source/web/MIDIClientProxy.h
copy to public/web/WebServiceWorkerContextProxy.h
index be3e7a7d856aea9a1a8425fc0dc842401d595994..d011778335492029d5faa6375a75cec86996d509 100644
--- a/Source/web/MIDIClientProxy.h
+++ b/public/web/WebServiceWorkerContextProxy.h
@@ -28,33 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MIDIClientProxy_h
-#define MIDIClientProxy_h
-
-#include "modules/webmidi/MIDIClient.h"
-#include "wtf/PassRefPtr.h"
-
-namespace WebCore {
-class MIDIAccess;
-}
+#ifndef WebServiceWorkerContextProxy_h
+#define WebServiceWorkerContextProxy_h
namespace blink {
-class WebMIDIClient;
-class WebViewImpl;
-
-class MIDIClientProxy : public WebCore::MIDIClient {
+// A proxy interface to talk to the worker's GlobalScope implementation.
+// All methods of this class must be called on the worker thread.
+class WebServiceWorkerContextProxy {
public:
- explicit MIDIClientProxy(WebMIDIClient*);
-
- // WebCore::MIDIClient
- virtual void requestSysExPermission(PassRefPtr<WebCore::MIDIAccess>);
- virtual void cancelSysExPermissionRequest(WebCore::MIDIAccess*);
+ // FIXME: Add service-worker specific methods.
-private:
- WebMIDIClient* m_client;
+ virtual void resumeWorkerContext() { }
+ virtual void attachDevTools() { }
+ virtual void reattachDevTools(const WebString& savedState) { }
+ virtual void detachDevTools() { }
+ virtual void dispatchDevToolsMessage(const WebString&) { }
};
} // namespace blink
-#endif // MIDIClientProxy_h
+#endif // WebServiceWorkerContextProxy_h
« public/web/WebServiceWorkerContextClient.h ('K') | « public/web/WebServiceWorkerContextClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698