Store tab_strip scope_patterns field in web_app_database

Bug: 1381374
Change-Id: If803e582bc1b57154fd279a8846005fff41983fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4530101
Reviewed-by: Ben Kelly <[email protected]>
Reviewed-by: Alan Cutter <[email protected]>
Commit-Queue: Ben Kelly <[email protected]>
Auto-Submit: Louise Brett <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1144751}
diff --git a/chrome/browser/web_applications/web_app_proto_utils.h b/chrome/browser/web_applications/web_app_proto_utils.h
index a07227e..70f01aa 100644
--- a/chrome/browser/web_applications/web_app_proto_utils.h
+++ b/chrome/browser/web_applications/web_app_proto_utils.h
@@ -8,10 +8,13 @@
 #include <vector>
 
 #include "chrome/browser/web_applications/proto/web_app.pb.h"
+#include "chrome/browser/web_applications/proto/web_app_tab_strip.pb.h"
+#include "chrome/browser/web_applications/proto/web_app_url_pattern.pb.h"
 #include "chrome/browser/web_applications/web_app.h"
 #include "components/sync/protocol/web_app_specifics.pb.h"
 #include "content/browser/background_fetch/background_fetch.pb.h"
 #include "third_party/abseil-cpp/absl/types/optional.h"
+#include "third_party/blink/public/common/url_pattern.h"
 
 namespace apps {
 struct IconInfo;
@@ -56,6 +59,13 @@
 WebAppProto::RunOnOsLoginMode ToWebAppProtoRunOnOsLoginMode(
     RunOnOsLoginMode mode);
 
+absl::optional<blink::UrlPattern> ToUrlPattern(
+    const proto::UrlPattern& proto_url_pattern);
+
+proto::UrlPattern ToUrlPatternProto(const blink::UrlPattern& url_pattern);
+
+absl::optional<TabStrip> ProtoToTabStrip(proto::TabStrip tab_strip_proto);
+
 }  // namespace web_app
 
 #endif  // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_PROTO_UTILS_H_