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

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

Issue 148573002: Add some histograms for <a ping> requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reword comments Created 6 years, 11 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/detachable_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/detachable_resource_handler.h
diff --git a/content/browser/loader/detachable_resource_handler.h b/content/browser/loader/detachable_resource_handler.h
index 2482270b865da4513e36e7ec5084fa88555299a5..25235b6532c0073b09afb4f84f45dd2126b26b35 100644
--- a/content/browser/loader/detachable_resource_handler.h
+++ b/content/browser/loader/detachable_resource_handler.h
@@ -10,9 +10,11 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
+#include "base/timer/elapsed_timer.h"
#include "base/timer/timer.h"
#include "content/browser/loader/resource_handler.h"
#include "content/public/browser/resource_controller.h"
+#include "net/url_request/url_request_status.h"
namespace net {
class IOBuffer;
@@ -80,6 +82,8 @@ class DetachableResourceHandler : public ResourceHandler,
virtual void CancelWithError(int error_code) OVERRIDE;
private:
+ void TimedOut();
+
scoped_ptr<ResourceHandler> next_handler_;
scoped_refptr<net::IOBuffer> read_buffer_;
@@ -88,6 +92,14 @@ class DetachableResourceHandler : public ResourceHandler,
bool is_deferred_;
bool is_finished_;
+ bool timed_out_;
+
+ bool response_started_;
+ base::ElapsedTimer time_since_start_;
+
+ // The status recorded from OnResponseCompleted. Value is
+ // net::URLRequestStatus::IO_PENDING if OnResponseCompleted is never received.
+ net::URLRequestStatus::Status status_;
DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler);
};
« no previous file with comments | « no previous file | content/browser/loader/detachable_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698