Index: third_party/WebKit/public/web/WebSourceLocation.h |
diff --git a/third_party/WebKit/public/web/WebSourceLocation.h b/third_party/WebKit/public/web/WebSourceLocation.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bb3bf978e14533e37a012213300c85aec7093c50 |
--- /dev/null |
+++ b/third_party/WebKit/public/web/WebSourceLocation.h |
@@ -0,0 +1,23 @@ |
+// 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 WebSourceLocation_h |
+#define WebSourceLocation_h |
+ |
+#include "third_party/WebKit/public/platform/WebString.h" |
+ |
+namespace blink { |
+ |
+// PlzNavigate |
+// This struct is passed to the browser when navigating, so that console error |
+// messages due to the navigation do not lose the source location information. |
+struct WebSourceLocation { |
+ WebString url; |
+ unsigned lineNumber = 0; |
+ unsigned columnNumber = 0; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |