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

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Fixed test compilation error Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 <deque> 6 #include <deque>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <utility> 10 #include <utility>
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 }; 1021 };
1022 1022
1023 // A ContentBrowserClient that forces cross-process navigations. 1023 // A ContentBrowserClient that forces cross-process navigations.
1024 class SwapProcessesContentBrowserClient : public ChromeContentBrowserClient { 1024 class SwapProcessesContentBrowserClient : public ChromeContentBrowserClient {
1025 public: 1025 public:
1026 SwapProcessesContentBrowserClient() {} 1026 SwapProcessesContentBrowserClient() {}
1027 ~SwapProcessesContentBrowserClient() override {} 1027 ~SwapProcessesContentBrowserClient() override {}
1028 1028
1029 // ChromeContentBrowserClient: 1029 // ChromeContentBrowserClient:
1030 bool ShouldSwapProcessesForRedirect( 1030 bool ShouldSwapProcessesForRedirect(
1031 content::ResourceContext* resource_context, 1031 content::BrowserContext* browser_context,
1032 const GURL& current_url, 1032 const GURL& current_url,
1033 const GURL& new_url) override { 1033 const GURL& new_url) override {
1034 return true; 1034 return true;
1035 } 1035 }
1036 1036
1037 private: 1037 private:
1038 DISALLOW_COPY_AND_ASSIGN(SwapProcessesContentBrowserClient); 1038 DISALLOW_COPY_AND_ASSIGN(SwapProcessesContentBrowserClient);
1039 }; 1039 };
1040 1040
1041 // An ExternalProtocolHandler that blocks everything and asserts it never is 1041 // An ExternalProtocolHandler that blocks everything and asserts it never is
(...skipping 2938 matching lines...) Expand 10 before | Expand all | Expand 10 after
3980 browser()->tab_strip_model()->GetActiveWebContents(); 3980 browser()->tab_strip_model()->GetActiveWebContents();
3981 bool display_test_result = false; 3981 bool display_test_result = false;
3982 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(web_contents, 3982 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(web_contents,
3983 "DidDisplayReallyPass()", 3983 "DidDisplayReallyPass()",
3984 &display_test_result)); 3984 &display_test_result));
3985 ASSERT_TRUE(display_test_result); 3985 ASSERT_TRUE(display_test_result);
3986 } 3986 }
3987 #endif // !defined(DISABLE_NACL) 3987 #endif // !defined(DISABLE_NACL)
3988 3988
3989 } // namespace prerender 3989 } // namespace prerender
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698