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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: temp 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 "chrome/browser/safe_browsing/safe_browsing_service.h" 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ->GetSession() 209 ->GetSession()
210 ->params(); 210 ->params();
211 safe_browsing_params.channel_id_service = channel_id_service_.get(); 211 safe_browsing_params.channel_id_service = channel_id_service_.get();
212 http_network_session_.reset( 212 http_network_session_.reset(
213 new net::HttpNetworkSession(safe_browsing_params)); 213 new net::HttpNetworkSession(safe_browsing_params));
214 http_transaction_factory_.reset( 214 http_transaction_factory_.reset(
215 new net::HttpNetworkLayer(http_network_session_.get())); 215 new net::HttpNetworkLayer(http_network_session_.get()));
216 safe_browsing_request_context_->set_http_transaction_factory( 216 safe_browsing_request_context_->set_http_transaction_factory(
217 http_transaction_factory_.get()); 217 http_transaction_factory_.get());
218 } 218 }
219 safe_browsing_request_context_->set_name_string("safe_browsing");
219 } 220 }
220 221
221 return safe_browsing_request_context_.get(); 222 return safe_browsing_request_context_.get();
222 } 223 }
223 224
224 scoped_refptr<base::SingleThreadTaskRunner> 225 scoped_refptr<base::SingleThreadTaskRunner>
225 SafeBrowsingURLRequestContextGetter::GetNetworkTaskRunner() const { 226 SafeBrowsingURLRequestContextGetter::GetNetworkTaskRunner() const {
226 return network_task_runner_; 227 return network_task_runner_;
227 } 228 }
228 229
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 ping_manager()->ReportThreatDetails(report); 701 ping_manager()->ReportThreatDetails(report);
701 } 702 }
702 703
703 void SafeBrowsingService::ProcessResourceRequest( 704 void SafeBrowsingService::ProcessResourceRequest(
704 const ResourceRequestInfo& request) { 705 const ResourceRequestInfo& request) {
705 DCHECK_CURRENTLY_ON(BrowserThread::UI); 706 DCHECK_CURRENTLY_ON(BrowserThread::UI);
706 services_delegate_->ProcessResourceRequest(&request); 707 services_delegate_->ProcessResourceRequest(&request);
707 } 708 }
708 709
709 } // namespace safe_browsing 710 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698