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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 9701006: Don't build the task manager into Android builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve jam's commnents about not ifdef'ing includes Created 8 years, 8 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
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/prefs/browser_prefs.cc » ('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/net/chrome_network_delegate.h" 5 #include "chrome/browser/net/chrome_network_delegate.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 "wibble.comodoca.com", net::kDNS_TXT, 0 /* flags */, 298 "wibble.comodoca.com", net::kDNS_TXT, 0 /* flags */,
299 Bind(RecordComodoDNSResult, base::Owned(response), start_time), 299 Bind(RecordComodoDNSResult, base::Owned(response), start_time),
300 response, 0 /* priority */, 300 response, 0 /* priority */,
301 request->net_log()); 301 request->net_log());
302 } 302 }
303 } 303 }
304 } 304 }
305 305
306 void ChromeNetworkDelegate::OnRawBytesRead(const net::URLRequest& request, 306 void ChromeNetworkDelegate::OnRawBytesRead(const net::URLRequest& request,
307 int bytes_read) { 307 int bytes_read) {
308 #if defined(ENABLE_TASK_MANAGER)
308 TaskManager::GetInstance()->model()->NotifyBytesRead(request, bytes_read); 309 TaskManager::GetInstance()->model()->NotifyBytesRead(request, bytes_read);
310 #endif // defined(ENABLE_TASK_MANAGER)
309 } 311 }
310 312
311 void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request, 313 void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request,
312 bool started) { 314 bool started) {
313 if (request->status().status() == net::URLRequestStatus::SUCCESS || 315 if (request->status().status() == net::URLRequestStatus::SUCCESS ||
314 request->status().status() == net::URLRequestStatus::HANDLED_EXTERNALLY) { 316 request->status().status() == net::URLRequestStatus::HANDLED_EXTERNALLY) {
315 bool is_redirect = request->response_headers() && 317 bool is_redirect = request->response_headers() &&
316 net::HttpResponseHeaders::IsRedirectResponseCode( 318 net::HttpResponseHeaders::IsRedirectResponseCode(
317 request->response_headers()->response_code()); 319 request->response_headers()->response_code());
318 if (!is_redirect) { 320 if (!is_redirect) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 request, &render_process_id, &render_view_id)) { 399 request, &render_process_id, &render_view_id)) {
398 BrowserThread::PostTask( 400 BrowserThread::PostTask(
399 BrowserThread::UI, FROM_HERE, 401 BrowserThread::UI, FROM_HERE,
400 base::Bind(&TabSpecificContentSettings::CookieChanged, 402 base::Bind(&TabSpecificContentSettings::CookieChanged,
401 render_process_id, render_view_id, 403 render_process_id, render_view_id,
402 request->url(), cookie_line, *options, !allow)); 404 request->url(), cookie_line, *options, !allow));
403 } 405 }
404 406
405 return allow; 407 return allow;
406 } 408 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698