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

Unified Diff: sky/engine/core/inspector/InspectorFrontendChannel.h

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Actually works Created 6 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: sky/engine/core/inspector/InspectorFrontendChannel.h
diff --git a/sky/engine/platform/MIMETypeFromURL.h b/sky/engine/core/inspector/InspectorFrontendChannel.h
similarity index 77%
copy from sky/engine/platform/MIMETypeFromURL.h
copy to sky/engine/core/inspector/InspectorFrontendChannel.h
index 52da262033c2df93446b4592c04ca8d56f4762ea..bd45f78bfbf808773c4b578fd7f100b15fda0e35 100644
--- a/sky/engine/platform/MIMETypeFromURL.h
+++ b/sky/engine/core/inspector/InspectorFrontendChannel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,19 +23,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MIMETypeFromURL_h
-#define MIMETypeFromURL_h
+#ifndef InspectorFrontendChannel_h
+#define InspectorFrontendChannel_h
-#include "platform/PlatformExport.h"
+#include "platform/JSONValues.h"
#include "wtf/Forward.h"
namespace blink {
-class KURL;
-
-PLATFORM_EXPORT String mimeTypeFromDataURL(const String& url);
-PLATFORM_EXPORT String mimeTypeFromURL(const KURL&);
+class InspectorFrontendChannel {
+public:
+ virtual ~InspectorFrontendChannel() { }
+ virtual void sendMessageToFrontend(PassRefPtr<JSONObject> message) = 0;
+ virtual void flush() = 0;
+};
} // namespace blink
-#endif // MIMETypeFromURL_h
+#endif // !defined(InspectorFrontendChannel_h)

Powered by Google App Engine
This is Rietveld 408576698