UrlUtilities 14 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java import org.chromium.chrome.browser.UrlUtilities; UrlUtilities 60 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java UrlUtilities.isDownloadableScheme(params.getLinkUrl())); UrlUtilities 64 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java UrlUtilities.isDownloadableScheme(params.getSrcUrl())); UrlUtilities 67 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java UrlUtilities.isDownloadableScheme(params.getSrcUrl())); UrlUtilities 77 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java UrlUtilities.isDownloadableScheme(params.getSrcUrl()) && UrlUtilities 18 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme("about:awesome")); UrlUtilities 19 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme("data:data")); UrlUtilities 20 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme( UrlUtilities 22 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme("http://awesome.example.com/")); UrlUtilities 23 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme("file://awesome.example.com/")); UrlUtilities 24 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme("inline:skates.co.uk")); UrlUtilities 25 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isAcceptedScheme("javascript:alert(1)")); UrlUtilities 27 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme("super:awesome")); UrlUtilities 28 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme( UrlUtilities 30 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme( UrlUtilities 32 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme( UrlUtilities 34 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme("chrome://http://version")); UrlUtilities 35 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme("")); UrlUtilities 36 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme(" http://awesome.example.com/")); UrlUtilities 37 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isAcceptedScheme("ht\ntp://awesome.example.com/")); UrlUtilities 42 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isDownloadableScheme("data:data")); UrlUtilities 43 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isDownloadableScheme( UrlUtilities 45 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isDownloadableScheme("http://awesome.example.com/")); UrlUtilities 46 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertTrue(UrlUtilities.isDownloadableScheme("filesystem://awesome.example.com/")); UrlUtilities 48 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("inline:skates.co.uk")); UrlUtilities 49 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("javascript:alert(1)")); UrlUtilities 50 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("file://awesome.example.com/")); UrlUtilities 51 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("about:awesome")); UrlUtilities 52 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("super:awesome")); UrlUtilities 53 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("ftp://https:password@example.com/")); UrlUtilities 54 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme( UrlUtilities 56 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme( UrlUtilities 58 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("chrome://http://version")); UrlUtilities 59 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("")); UrlUtilities 60 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme(" http://awesome.example.com/")); UrlUtilities 61 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertFalse(UrlUtilities.isDownloadableScheme("ht\ntp://awesome.example.com/")); UrlUtilities 68 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("google.com")); UrlUtilities 70 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("\n://user:pass@example.com:80/")); UrlUtilities 72 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("inline:google.com")); UrlUtilities 74 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("chrome:user:pass@google:443/leg:foot")); UrlUtilities 76 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("https://mail.google.com:/")); UrlUtilities 78 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("://mail.google.com:/")); UrlUtilities 80 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java uri = new URI(UrlUtilities.fixUrl("//mail.google.com:/")); UrlUtilities 93 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("http://chopped.com", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 94 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("chopped.com", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 97 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("http://lopped.com", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 98 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("lopped.com", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 101 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("http://dropped.com", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 102 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("dropped.com", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 105 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("http://stopped.com:1234", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 106 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("stopped.com:1234", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 109 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("http://stopped.com:9999", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 110 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("stopped.com:9999", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 113 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("chrome://settings:443", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 114 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("settings:443", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 117 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("about:blank", UrlUtilities.getOriginForDisplay(uri, true)); UrlUtilities 118 chrome/android/javatests/src/org/chromium/chrome/browser/UrlUtilitiesTest.java assertEquals("about:blank", UrlUtilities.getOriginForDisplay(uri, false)); UrlUtilities 11 chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java import org.chromium.chrome.browser.UrlUtilities; UrlUtilities 60 chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTab.java url = UrlUtilities.fixupUrl(url); UrlUtilities 91 net/tools/dump_cache/url_to_filename_encoder.cc string filename_ending = UrlUtilities::Unescape(escaped_ending); UrlUtilities 101 net/tools/dump_cache/url_to_filename_encoder.h std::string url_no_scheme = UrlUtilities::GetUrlHostPath(url); UrlUtilities 111 net/tools/dump_cache/url_to_filename_encoder.h std::string host = UrlUtilities::GetUrlHost(clean_url); UrlUtilities 120 net/tools/dump_cache/url_to_filename_encoder.h std::string url_filename = UrlUtilities::GetUrlPath(clean_url); UrlUtilities 13 net/tools/dump_cache/url_utilities.cc std::string UrlUtilities::GetUrlHost(const std::string& url) { UrlUtilities 36 net/tools/dump_cache/url_utilities.cc std::string UrlUtilities::GetUrlHostPath(const std::string& url) { UrlUtilities 45 net/tools/dump_cache/url_utilities.cc std::string UrlUtilities::GetUrlPath(const std::string& url) { UrlUtilities 72 net/tools/dump_cache/url_utilities.cc std::string UrlUtilities::Unescape(const std::string& escaped_url) { UrlUtilities 17 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("http://www.foo.com")); UrlUtilities 19 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("http://www.foo.com:80")); UrlUtilities 21 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("http://www.foo.com:80/")); UrlUtilities 23 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("http://www.foo.com/news")); UrlUtilities 25 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("www.foo.com:80/news?q=hello")); UrlUtilities 27 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("www.foo.com/news?q=a:b")); UrlUtilities 29 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHost("www.foo.com:80")); UrlUtilities 34 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("http://www.foo.com")); UrlUtilities 36 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("http://www.foo.com:80")); UrlUtilities 38 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("http://www.foo.com:80/")); UrlUtilities 40 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("http://www.foo.com/news")); UrlUtilities 42 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("www.foo.com:80/news?q=hello")); UrlUtilities 44 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("www.foo.com/news?q=a:b")); UrlUtilities 46 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlHostPath("www.foo.com:80")); UrlUtilities 51 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("http://www.foo.com")); UrlUtilities 53 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("http://www.foo.com:80")); UrlUtilities 55 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("http://www.foo.com:80/")); UrlUtilities 57 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("http://www.foo.com/news")); UrlUtilities 59 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("www.foo.com:80/news?q=hello")); UrlUtilities 61 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("www.foo.com/news?q=a:b")); UrlUtilities 63 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::GetUrlPath("www.foo.com:80")); UrlUtilities 69 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::Unescape("http://www.foo.com")); UrlUtilities 71 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::Unescape("www.foo.com:80/news?q=hello")); UrlUtilities 75 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::Unescape("%7E%60%21%40%23%24%25%5E%26%2A%28%29%5F%2D" UrlUtilities 81 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ(unescaped_char, UrlUtilities::Unescape(escaped_char)) UrlUtilities 84 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ(unescaped_char, UrlUtilities::Unescape(escaped_char)) UrlUtilities 90 net/tools/dump_cache/url_utilities_unittest.cc UrlUtilities::Unescape("~`!@#$^&*()_-+={[}]|\\:;\"'<,>.?/")); UrlUtilities 94 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ(just_char, UrlUtilities::Unescape(just_char)); UrlUtilities 99 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("Hello, world!", UrlUtilities::Unescape("Hello%2C world%21")); UrlUtilities 102 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%", UrlUtilities::Unescape("%")); UrlUtilities 103 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%www", UrlUtilities::Unescape("%www")); UrlUtilities 104 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%foo", UrlUtilities::Unescape("%foo")); UrlUtilities 105 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%1", UrlUtilities::Unescape("%1")); UrlUtilities 106 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%1x", UrlUtilities::Unescape("%1x")); UrlUtilities 107 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%%", UrlUtilities::Unescape("%%")); UrlUtilities 109 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%!", UrlUtilities::Unescape("%%21")); UrlUtilities 110 net/tools/dump_cache/url_utilities_unittest.cc EXPECT_EQ("%2!", UrlUtilities::Unescape("%2%21")); UrlUtilities 49 net/tools/flip_server/http_interface.cc UrlUtilities::GetUrlHost(headers.GetHeader("Host").as_string()); UrlUtilities 157 net/tools/flip_server/spdy_interface.cc path_string = UrlUtilities::GetUrlPath(url->second); UrlUtilities 158 net/tools/flip_server/spdy_interface.cc host_string = UrlUtilities::GetUrlHost(url->second); UrlUtilities 456 net/tools/flip_server/spdy_interface.cc block["url"] = UrlUtilities::GetUrlPath(original_url); UrlUtilities 466 net/tools/flip_server/spdy_interface.cc block[":path"] = UrlUtilities::GetUrlPath(original_url); UrlUtilities 467 net/tools/flip_server/spdy_interface.cc block[":host"] = UrlUtilities::GetUrlPath(original_url);