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

Unified Diff: content/browser/loader/async_resource_handler.h

Issue 2092993002: Browser process changes for Resource Timing sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Method renames Created 4 years, 5 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
« no previous file with comments | « no previous file | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/async_resource_handler.h
diff --git a/content/browser/loader/async_resource_handler.h b/content/browser/loader/async_resource_handler.h
index 0991021336043dc8b4d990a24352ca6408aaa22d..c087f1666d0a0dbbdd952a0609c98bdee7cffd1e 100644
--- a/content/browser/loader/async_resource_handler.h
+++ b/content/browser/loader/async_resource_handler.h
@@ -14,6 +14,7 @@
#include "base/timer/timer.h"
#include "content/browser/loader/resource_handler.h"
#include "content/browser/loader/resource_message_delegate.h"
+#include "content/common/content_export.h"
#include "net/base/io_buffer.h"
#include "url/gurl.h"
@@ -30,8 +31,8 @@ class SharedIOBuffer;
// Used to complete an asynchronous resource request in response to resource
// load events from the resource dispatcher host.
-class AsyncResourceHandler : public ResourceHandler,
- public ResourceMessageDelegate {
+class CONTENT_EXPORT AsyncResourceHandler : public ResourceHandler,
+ public ResourceMessageDelegate {
public:
AsyncResourceHandler(net::URLRequest* request,
ResourceDispatcherHostImpl* rdh);
@@ -70,6 +71,7 @@ class AsyncResourceHandler : public ResourceHandler,
void OnDefer();
bool CheckForSufficientResource();
int CalculateEncodedDataLengthToReport();
+ int CalculateEncodedBodyLengthToReport();
void RecordHistogram();
scoped_refptr<ResourceBuffer> buffer_;
@@ -96,6 +98,7 @@ class AsyncResourceHandler : public ResourceHandler,
base::RepeatingTimer progress_timer_;
int64_t reported_transfer_size_;
+ int64_t reported_encoded_body_length_;
DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
};
« no previous file with comments | « no previous file | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698