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

Unified Diff: third_party/WebKit/public/web/ConsoleMessageTraits.h

Issue 2630273002: ServiceWorker: mojofy ResumeAfterDownload and AddMessageToConsole (Closed)
Patch Set: Removed unnecessary consts and includes Created 3 years, 11 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
Index: third_party/WebKit/public/web/ConsoleMessageTraits.h
diff --git a/third_party/WebKit/public/web/ConsoleMessageTraits.h b/third_party/WebKit/public/web/ConsoleMessageTraits.h
new file mode 100644
index 0000000000000000000000000000000000000000..8260c83930a32294a88b06a8ba6e9a8c278dd905
--- /dev/null
+++ b/third_party/WebKit/public/web/ConsoleMessageTraits.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ConsoleMessageTraits_h
+#define ConsoleMessageTraits_h
+
+#include "WebConsoleMessage.h"
+#include "mojo/public/cpp/bindings/enum_traits.h"
+#include "third_party/WebKit/public/web/console_message.mojom-shared.h"
+
+namespace mojo {
+
+template <>
+struct EnumTraits<blink::mojom::ConsoleMessageLevel,
+ blink::WebConsoleMessage::Level> {
+ static blink::mojom::ConsoleMessageLevel ToMojom(
+ blink::WebConsoleMessage::Level);
+ static bool FromMojom(blink::mojom::ConsoleMessageLevel,
+ blink::WebConsoleMessage::Level* out);
+};
+
+} // namespace mojo
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698