new net::test_server::BasicHttpResponse);
http_response->set_code(net::HTTP_MOVED_PERMANENTLY);
http_response->AddCustomHeader("Location", redirect_target);
- return http_response.PassAs<net::test_server::HttpResponse>();
+ return http_response.Pass();
} else {
scoped_ptr<net::test_server::BasicHttpResponse> http_response(
new net::test_server::BasicHttpResponse);
http_response->set_code(net::HTTP_OK);
http_response->set_content("Success");
- return http_response.PassAs<net::test_server::HttpResponse>();
+ return http_response.Pass();
}
}
: ChromeResourceDispatcherHostDelegate(prerender_tracker) {
}
- virtual ~TestDispatcherHostDelegate() {}
+ ~TestDispatcherHostDelegate() override {}
- virtual void RequestBeginning(
+ void RequestBeginning(
net::URLRequest* request,
content::ResourceContext* resource_context,
content::AppCacheService* appcache_service,
ResourceType resource_type,
- ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE {
+ ScopedVector<content::ResourceThrottle>* throttles) override {
ChromeResourceDispatcherHostDelegate::RequestBeginning(
request,
resource_context,
request_headers_.MergeFrom(request->extra_request_headers());
}
- virtual void OnRequestRedirected(
- const GURL& redirect_url,
- net::URLRequest* request,
- content::ResourceContext* resource_context,
- content::ResourceResponse* response) OVERRIDE {
+ void OnRequestRedirected(const GURL& redirect_url,
+ net::URLRequest* request,
+ content::ResourceContext* resource_context,
+ content::ResourceResponse* response) override {
ChromeResourceDispatcherHostDelegate::OnRequestRedirected(
redirect_url,
request,
public:
ChromeResourceDispatcherHostDelegateBrowserTest() {}
- virtual void SetUpOnMainThread() OVERRIDE {
+ void SetUpOnMainThread() override {
InProcessBrowserTest::SetUpOnMainThread();
// Hook navigations with our delegate.
dispatcher_host_delegate_.reset(new TestDispatcherHostDelegate(
}
}
- virtual void TearDownOnMainThread() OVERRIDE {
+ void TearDownOnMainThread() override {
content::ResourceDispatcherHost::Get()->SetDelegate(NULL);
dispatcher_host_delegate_.reset();
}