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

Unified Diff: ios/web/public/test/test_web_client.mm

Issue 1929783002: [ios Mojo] Supporting code for define WebUI function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_require_js
Patch Set: Actually use Map API Created 4 years, 7 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
« no previous file with comments | « ios/web/public/test/test_web_client.h ('k') | ios/web/test/test_url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/test_web_client.mm
diff --git a/ios/web/public/test/test_web_client.mm b/ios/web/public/test/test_web_client.mm
index d3d4f3ba07afcd3562089756c8468eec89618e84..a5c6bad972500aec0a8b481746b70bd28abb7eba 100644
--- a/ios/web/public/test/test_web_client.mm
+++ b/ios/web/public/test/test_web_client.mm
@@ -5,6 +5,8 @@
#import "ios/web/public/test/test_web_client.h"
#include "base/logging.h"
+#include "ios/web/test/test_url_constants.h"
+#include "url/gurl.h"
namespace web {
@@ -13,6 +15,16 @@ TestWebClient::TestWebClient()
TestWebClient::~TestWebClient() {}
+void TestWebClient::AddAdditionalSchemes(
+ std::vector<url::SchemeWithType>* additional_standard_schemes) const {
+ url::SchemeWithType scheme = {kTestWebUIScheme, url::SCHEME_WITHOUT_PORT};
+ additional_standard_schemes->push_back(scheme);
+}
+
+bool TestWebClient::IsAppSpecificURL(const GURL& url) const {
+ return url.SchemeIs(kTestWebUIScheme);
+}
+
NSString* TestWebClient::GetEarlyPageScript() const {
return early_page_script_ ? early_page_script_.get() : @"";
}
« no previous file with comments | « ios/web/public/test/test_web_client.h ('k') | ios/web/test/test_url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698