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

Side by Side Diff: components/visitedlink/test/visitedlink_unittest.cc

Issue 16490003: Pass the SiteInstance into CreateRenderProcessHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ContentBrowserClient, which is global, from argument list Created 7 years, 6 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 | Annotate | Revision Log
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 <cstdio> 5 #include <cstdio>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 DISALLOW_COPY_AND_ASSIGN(VisitRelayingRenderProcessHost); 575 DISALLOW_COPY_AND_ASSIGN(VisitRelayingRenderProcessHost);
576 }; 576 };
577 577
578 class VisitedLinkRenderProcessHostFactory 578 class VisitedLinkRenderProcessHostFactory
579 : public content::RenderProcessHostFactory { 579 : public content::RenderProcessHostFactory {
580 public: 580 public:
581 VisitedLinkRenderProcessHostFactory() 581 VisitedLinkRenderProcessHostFactory()
582 : content::RenderProcessHostFactory() {} 582 : content::RenderProcessHostFactory() {}
583 virtual content::RenderProcessHost* CreateRenderProcessHost( 583 virtual content::RenderProcessHost* CreateRenderProcessHost(
584 content::BrowserContext* browser_context) const OVERRIDE { 584 content::BrowserContext* browser_context,
585 content::SiteInstance* site_instance) const OVERRIDE {
585 return new VisitRelayingRenderProcessHost(browser_context); 586 return new VisitRelayingRenderProcessHost(browser_context);
586 } 587 }
587 588
588 private: 589 private:
589 590
590 DISALLOW_COPY_AND_ASSIGN(VisitedLinkRenderProcessHostFactory); 591 DISALLOW_COPY_AND_ASSIGN(VisitedLinkRenderProcessHostFactory);
591 }; 592 };
592 593
593 class VisitedLinkEventsTest : public content::RenderViewHostTestHarness { 594 class VisitedLinkEventsTest : public content::RenderViewHostTestHarness {
594 public: 595 public:
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 content::NOTIFICATION_RENDERER_PROCESS_CREATED, 768 content::NOTIFICATION_RENDERER_PROCESS_CREATED,
768 content::Source<content::RenderProcessHost>(&different_process_host), 769 content::Source<content::RenderProcessHost>(&different_process_host),
769 content::NotificationService::NoDetails()); 770 content::NotificationService::NoDetails());
770 WaitForCoalescense(); 771 WaitForCoalescense();
771 772
772 EXPECT_EQ(0, different_context.new_table_count()); 773 EXPECT_EQ(0, different_context.new_table_count());
773 774
774 } 775 }
775 776
776 } // namespace visitedlink 777 } // namespace visitedlink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698