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

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

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: tmp Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 ->GetSession() 210 ->GetSession()
211 ->params(); 211 ->params();
212 safe_browsing_params.channel_id_service = channel_id_service_.get(); 212 safe_browsing_params.channel_id_service = channel_id_service_.get();
213 http_network_session_.reset( 213 http_network_session_.reset(
214 new net::HttpNetworkSession(safe_browsing_params)); 214 new net::HttpNetworkSession(safe_browsing_params));
215 http_transaction_factory_.reset( 215 http_transaction_factory_.reset(
216 new net::HttpNetworkLayer(http_network_session_.get())); 216 new net::HttpNetworkLayer(http_network_session_.get()));
217 safe_browsing_request_context_->set_http_transaction_factory( 217 safe_browsing_request_context_->set_http_transaction_factory(
218 http_transaction_factory_.get()); 218 http_transaction_factory_.get());
219 } 219 }
220 safe_browsing_request_context_->set_name_string("safe_browsing");
220 } 221 }
221 222
222 return safe_browsing_request_context_.get(); 223 return safe_browsing_request_context_.get();
223 } 224 }
224 225
225 scoped_refptr<base::SingleThreadTaskRunner> 226 scoped_refptr<base::SingleThreadTaskRunner>
226 SafeBrowsingURLRequestContextGetter::GetNetworkTaskRunner() const { 227 SafeBrowsingURLRequestContextGetter::GetNetworkTaskRunner() const {
227 return network_task_runner_; 228 return network_task_runner_;
228 } 229 }
229 230
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 ping_manager()->ReportThreatDetails(report); 703 ping_manager()->ReportThreatDetails(report);
703 } 704 }
704 705
705 void SafeBrowsingService::ProcessResourceRequest( 706 void SafeBrowsingService::ProcessResourceRequest(
706 const ResourceRequestInfo& request) { 707 const ResourceRequestInfo& request) {
707 DCHECK_CURRENTLY_ON(BrowserThread::UI); 708 DCHECK_CURRENTLY_ON(BrowserThread::UI);
708 services_delegate_->ProcessResourceRequest(&request); 709 services_delegate_->ProcessResourceRequest(&request);
709 } 710 }
710 711
711 } // namespace safe_browsing 712 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698