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

Unified Diff: chrome/browser/task_management/sampling/task_manager_io_thread_helper.h

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty cronet OnRawBytesRead implementation Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_management/sampling/task_manager_io_thread_helper.h
diff --git a/chrome/browser/task_management/sampling/task_manager_io_thread_helper.h b/chrome/browser/task_management/sampling/task_manager_io_thread_helper.h
index c756d4234b6681fffb66906ccf8e4fcd8648a044..ba301b2e8d62712d7d78f8d23aa3c8d1eb658dd7 100644
--- a/chrome/browser/task_management/sampling/task_manager_io_thread_helper.h
+++ b/chrome/browser/task_management/sampling/task_manager_io_thread_helper.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IO_THREAD_HELPER_H_
#define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IO_THREAD_HELPER_H_
+#include <stdint.h>
+
#include <vector>
#include "base/macros.h"
@@ -31,12 +33,12 @@ struct BytesReadParam {
int route_id;
// The number of bytes read.
- int byte_count;
+ int64_t byte_count;
BytesReadParam(int origin_pid,
int child_id,
int route_id,
- int byte_count)
+ int64_t byte_count)
: origin_pid(origin_pid),
child_id(child_id),
route_id(route_id),
@@ -67,7 +69,8 @@ class TaskManagerIoThreadHelper {
// This is used to forward the call to update the network bytes from the
// TaskManagerInterface if the new task manager is enabled.
- static void OnRawBytesRead(const net::URLRequest& request, int bytes_read);
+ static void OnRawBytesRead(const net::URLRequest& request,
+ int64_t bytes_read);
private:
TaskManagerIoThreadHelper();
@@ -78,7 +81,7 @@ class TaskManagerIoThreadHelper {
static void OnMultipleBytesReadIO();
// This will update the task manager with the network bytes read.
- void OnNetworkBytesRead(const net::URLRequest& request, int bytes_read);
+ void OnNetworkBytesRead(const net::URLRequest& request, int64_t bytes_read);
// This buffer will be filled on IO thread with information about the number
// of bytes read from URLRequests.

Powered by Google App Engine
This is Rietveld 408576698