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 <deque> | 5 #include <deque> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 // ExternalProtocolHandler::Delegate implementation. | 965 // ExternalProtocolHandler::Delegate implementation. |
966 virtual ShellIntegration::DefaultProtocolClientWorker* CreateShellWorker( | 966 virtual ShellIntegration::DefaultProtocolClientWorker* CreateShellWorker( |
967 ShellIntegration::DefaultWebClientObserver* observer, | 967 ShellIntegration::DefaultWebClientObserver* observer, |
968 const std::string& protocol) OVERRIDE { | 968 const std::string& protocol) OVERRIDE { |
969 NOTREACHED(); | 969 NOTREACHED(); |
970 // This will crash, but it shouldn't get this far with BlockState::BLOCK | 970 // This will crash, but it shouldn't get this far with BlockState::BLOCK |
971 // anyway. | 971 // anyway. |
972 return NULL; | 972 return NULL; |
973 } | 973 } |
974 virtual ExternalProtocolHandler::BlockState GetBlockState( | 974 virtual ExternalProtocolHandler::BlockState GetBlockState( |
975 const std::string& scheme, | 975 const std::string& scheme) OVERRIDE { |
976 bool initiated_by_user_gesture) OVERRIDE { | |
977 // Block everything and fail the test. | 976 // Block everything and fail the test. |
978 ADD_FAILURE(); | 977 ADD_FAILURE(); |
979 return ExternalProtocolHandler::BLOCK; | 978 return ExternalProtocolHandler::BLOCK; |
980 } | 979 } |
981 virtual void BlockRequest() OVERRIDE { } | 980 virtual void BlockRequest() OVERRIDE { } |
982 virtual void RunExternalProtocolDialog(const GURL& url, | 981 virtual void RunExternalProtocolDialog(const GURL& url, |
983 int render_process_host_id, | 982 int render_process_host_id, |
984 int routing_id) OVERRIDE { | 983 int routing_id) OVERRIDE { |
985 NOTREACHED(); | 984 NOTREACHED(); |
986 } | 985 } |
(...skipping 3187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4174 } | 4173 } |
4175 }; | 4174 }; |
4176 | 4175 |
4177 // Checks that prerendering works in incognito mode. | 4176 // Checks that prerendering works in incognito mode. |
4178 IN_PROC_BROWSER_TEST_F(PrerenderIncognitoBrowserTest, PrerenderIncognito) { | 4177 IN_PROC_BROWSER_TEST_F(PrerenderIncognitoBrowserTest, PrerenderIncognito) { |
4179 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); | 4178 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); |
4180 NavigateToDestURL(); | 4179 NavigateToDestURL(); |
4181 } | 4180 } |
4182 | 4181 |
4183 } // namespace prerender | 4182 } // namespace prerender |
OLD | NEW |