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

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

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. Created 4 years, 2 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 }; 569 };
570 570
571 // A ContentBrowserClient that forces cross-process navigations. 571 // A ContentBrowserClient that forces cross-process navigations.
572 class SwapProcessesContentBrowserClient : public ChromeContentBrowserClient { 572 class SwapProcessesContentBrowserClient : public ChromeContentBrowserClient {
573 public: 573 public:
574 SwapProcessesContentBrowserClient() {} 574 SwapProcessesContentBrowserClient() {}
575 ~SwapProcessesContentBrowserClient() override {} 575 ~SwapProcessesContentBrowserClient() override {}
576 576
577 // ChromeContentBrowserClient: 577 // ChromeContentBrowserClient:
578 bool ShouldSwapProcessesForRedirect( 578 bool ShouldSwapProcessesForRedirect(
579 content::BrowserContext* browser_context, 579 content::ResourceContext* resource_context,
580 const GURL& current_url, 580 const GURL& current_url,
581 const GURL& new_url) override { 581 const GURL& new_url) override {
582 return true; 582 return true;
583 } 583 }
584 584
585 private: 585 private:
586 DISALLOW_COPY_AND_ASSIGN(SwapProcessesContentBrowserClient); 586 DISALLOW_COPY_AND_ASSIGN(SwapProcessesContentBrowserClient);
587 }; 587 };
588 588
589 base::FilePath GetTestPath(const std::string& file_name) { 589 base::FilePath GetTestPath(const std::string& file_name) {
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
3376 browser()->tab_strip_model()->GetActiveWebContents(); 3376 browser()->tab_strip_model()->GetActiveWebContents();
3377 bool display_test_result = false; 3377 bool display_test_result = false;
3378 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(web_contents, 3378 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(web_contents,
3379 "DidDisplayReallyPass()", 3379 "DidDisplayReallyPass()",
3380 &display_test_result)); 3380 &display_test_result));
3381 ASSERT_TRUE(display_test_result); 3381 ASSERT_TRUE(display_test_result);
3382 } 3382 }
3383 #endif // !defined(DISABLE_NACL) 3383 #endif // !defined(DISABLE_NACL)
3384 3384
3385 } // namespace prerender 3385 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698