OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 url::Component query(0, request_query.length()), key_pos, value_pos; | 626 url::Component query(0, request_query.length()), key_pos, value_pos; |
627 while (url::ExtractQueryKeyValue( | 627 while (url::ExtractQueryKeyValue( |
628 request_query.c_str(), &query, &key_pos, &value_pos)) { | 628 request_query.c_str(), &query, &key_pos, &value_pos)) { |
629 std::string escaped_key(request_query.substr(key_pos.begin, key_pos.len)); | 629 std::string escaped_key(request_query.substr(key_pos.begin, key_pos.len)); |
630 std::string escaped_value( | 630 std::string escaped_value( |
631 request_query.substr(value_pos.begin, value_pos.len)); | 631 request_query.substr(value_pos.begin, value_pos.len)); |
632 | 632 |
633 std::string key = net::UnescapeURLComponent( | 633 std::string key = net::UnescapeURLComponent( |
634 escaped_key, | 634 escaped_key, |
635 net::UnescapeRule::NORMAL | net::UnescapeRule::SPACES | | 635 net::UnescapeRule::NORMAL | net::UnescapeRule::SPACES | |
636 net::UnescapeRule::URL_SPECIAL_CHARS); | 636 net::UnescapeRule::PATH_SEPARATORS | |
| 637 net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS); |
637 | 638 |
638 std::string value = net::UnescapeURLComponent( | 639 std::string value = net::UnescapeURLComponent( |
639 escaped_value, | 640 escaped_value, |
640 net::UnescapeRule::NORMAL | net::UnescapeRule::SPACES | | 641 net::UnescapeRule::NORMAL | net::UnescapeRule::SPACES | |
641 net::UnescapeRule::URL_SPECIAL_CHARS); | 642 net::UnescapeRule::PATH_SEPARATORS | |
| 643 net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS); |
642 | 644 |
643 if (key == "method") | 645 if (key == "method") |
644 fail_method = value; | 646 fail_method = value; |
645 else if (key == "class") | 647 else if (key == "class") |
646 fail_class = value; | 648 fail_class = value; |
647 else if (key == "instNum") | 649 else if (key == "instNum") |
648 instance_num = atoi(value.c_str()); | 650 instance_num = atoi(value.c_str()); |
649 else if (key == "callNum") | 651 else if (key == "callNum") |
650 call_num = atoi(value.c_str()); | 652 call_num = atoi(value.c_str()); |
651 else | 653 else |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 command_line->AppendSwitch(switches::kSingleProcess); | 850 command_line->AppendSwitch(switches::kSingleProcess); |
849 } | 851 } |
850 }; | 852 }; |
851 | 853 |
852 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 854 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
853 RenderThreadShutdownTest) { | 855 RenderThreadShutdownTest) { |
854 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 856 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
855 } | 857 } |
856 | 858 |
857 } // namespace content | 859 } // namespace content |
OLD | NEW |