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

Unified Diff: net/log/net_log_event_type_list.h

Issue 2754003002: [DO NOT SUBMIT, PATCH on commit 7fa349e632a44c152b05ca6a66ade5f2e5b3f139] (Closed)
Patch Set: add status logging in SESSION, check clock skewed Created 3 years, 9 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 | « net/http/http_stream_factory_impl_job_controller.cc ('k') | net/log/net_log_source_type_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_event_type_list.h
diff --git a/net/log/net_log_event_type_list.h b/net/log/net_log_event_type_list.h
index 0a844474a7c6faca09e12b3c97a3a826e47ca2b0..8fbb3a5eab869c28fceff4c8241b48e3ef0196b3 100644
--- a/net/log/net_log_event_type_list.h
+++ b/net/log/net_log_event_type_list.h
@@ -1115,6 +1115,180 @@ EVENT_TYPE(HTTP_STREAM_JOB_DELAYED)
// }
EVENT_TYPE(HTTP_STREAM_JOB_RESUMED)
+// ===========================================================================
+//
+// TEMP Net LOG for debugging crbug.com/700617
+//
+// ===========================================================================
+
+// HttpStreamFactoryImpl::Job::DoLoop States
+EVENT_TYPE(HTTP_STREAM_JOB_RESOLVE_PROXY)
+
+EVENT_TYPE(HTTP_STREAM_JOB_INIT_CONNECTION)
+
+// {
+// "should_resume": <True if MaybeResumeMainJob will be called after alt
+// job init connection>
+// }
+EVENT_TYPE(HTTP_STREAM_JOB_INIT_CONNECTION_IMPL)
+
+// HttpStreamFactoryImpl::Job::DoInitConnectionImpl details
+// Emitted when a QuicStreamRequest is created
+// {
+// "delay_in_macroseconds": <Number of milliseconds alt job want to set
+// for the main job>
+// "using_exisiting_quic_session": <True if using exisiting quic session>
+// }
+EVENT_TYPE(HTTP_STREAM_JOB_CREATE_QUIC_REQUEST)
+
+// Logged when a Job OnStreamFailed is reported.
+// {
+// "is_orphaned": <True if Job reporting OnStreamFailed is orphaned>
+// }
+EVENT_TYPE(HTTP_STREAM_JOB_ON_STREAM_FAILED)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_CERTIFICATE_ERROR)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_HTTPS_PROXY_TUNNEL_REPONSE)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_NEEDS_CLIENT_AUTH)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_NEEDS_PROXY_AUTH)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_STREAM_READY)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_BI_STREAN_IMPL_READY)
+EVENT_TYPE(HTTP_STREAM_JOB_ON_NEW_SPDY_SESSION_READY)
+
+// Logged when QuicStreamFactory::Create() is invoked or completed.
+// {
+// "server_id": <host:port/privacy_mode this url is associated>.
+// "is_promised": <True if the url is found with a push promise>
+// "active_session_exisit": <True if an active session can ce used for
+// server_id>.
+// "pool_to_active_session": <True if an active session can pool for the
+// destination>.
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_CREATE_HTTP_STREAM)
+
+// Logged when QuicStreamFactory::Request bound to active_job.
+// i.e. HasActiveJob for the server id.
+// {
+// "job_count": <# of jobs serving the server id>.
+// "active_job_exisit": True.
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_REQUEST_BOUND_TO_ACTIVE_JOB)
+
+// Logged when a QuicStreamFactory::Job is created to serve this
+// HTTP_STREAM_JOB.
+EVENT_TYPE(QUIC_STREAM_FACTORY_REQUEST_CREATE_NEW_JOB)
+
+// Logged when the Job returns IO_PENDING after run().
+EVENT_TYPE(QUIC_STREAM_FACTORY_REQUEST_NEW_JOB_PENDING)
+
+// Logged when the Job returns OK synchronously.
+EVENT_TYPE(QUIC_STREAM_FACTORY_REQUEST_NEW_JOB_SUCCEED)
+
+// Logged when the Job returns failure synchronously.
+EVENT_TYPE(QUIC_STREAM_FACTORY_REQUEST_NEW_JOB_FAILED)
+
+// Used for logging job count.
+EVENT_TYPE(QUIC_STREAM_FACTORY_REQUEST_ACTIVE_JOB_COUNT)
+
+EVENT_TYPE(QUIC_STREAM_FACTORY_HAS_ACTIVE_JOB)
+
+// Logged when active session inserted/deleted from active_sessions_
+// {
+// "server_id": <Server ID for session>
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_ACTIVE_SESSION_INSERTION)
+EVENT_TYPE(QUIC_STREAM_FACTORY_ACTIVE_SESSION_DELETION)
+
+// QuicStreamFactory::Job events
+// Logged when a QuicStreamFactoryJob is created or destructed.
+// {
+// "resume_existing_session": <True if the QuicStreamFactory::Job is
+// created to resume connection to an existing
+// quic session.>
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB)
+
+// Logged when this QuicStreamFactory::Job is determined to serve a specific
+// HTTP_STREAM_JOB(al job).
+//
+// in QUIC_STREAM_FACTORY_JOB net log
+// {
+// "source_dependency": <Link to the HTTP_STREAM_JOB this QUIC job is
+// serving>.
+// }
+//
+// in HTTP_STREAM_JOB net log
+// {
+// "source_dependency": <Link to the QUIC_STREAM_FACTORY_JOB which
+// serves this job>.
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_BOUND)
+
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_LOG)
+
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_RESOLVE_HOST)
+
+// {
+// "load_server_info_time_ms": <Timeout to load server info from disk>
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_LOAD_SERVER_INFO)
+
+// {
+// "require_confirmation": <True if requires confirmation or the alt
+// service was marked broken recentlyi>
+// "resume_connection": <True if trying to resume connection>.
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_CONNECT)
+
+// Logged if aux job is crated to load server config from disk cache.
+EVENT_TYPE(QUIC_STREAM_FACTORY_START_AUX_JOB)
+
+// Logged when this job completes from QuicStreamFactoy::OnJobComplete() and
+// should determines the status of the server id.
+// 1. it's NOT OK, but is the only job serving the server_id.
+// 2. it's OK.
+// {
+// "is_success": <True if this job is finishing with OK>
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_COMPLTE_FROM_FACTORY)
+
+// Logged when this job is cancelled by factory.
+// 1. it's finishes with NOT OK, but there are other jobs.
+// 2. it's not finishing, but there's other job finishing with OK.
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_CANCELLED_BY_FACTORY)
+
+// Logged when QuicStreamFactory::Job::Cancel() is invoked.
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_CANCELLED)
+
+// QuicStreamFactory related
+
+// Logged when QuicStreamFactory::OnJobComplete() is invoked
+// {
+// "server_id": <ServerId that the completing Job is associated>
+// }
+EVENT_TYPE(QUIC_STREAM_FACTORY_JOB_COMPLETE)
+
+// Location of alt job deletaion.
+// alt job resets OnRequestComplete() and alt job is bound to request.
+EVENT_TYPE(ALT_JOB_DELETED_ON_REQUEST_COMPLETE_AND_BOUND)
+
+// alt job resets OnStreamFailed with no bound job, main job alive.
+EVENT_TYPE(ALT_JOB_DELETED_ON_STREAM_FAILED)
+
+// alt job resets in ~JobController().
+EVENT_TYPE(ALT_JOB_DELETED_ON_DESTRUCT_JOB_CONTROLLER)
+
+// alt job resets in CancelJobs().
+EVENT_TYPE(ALT_JOB_DELETED_ON_CANCEL_JOBS)
+
+// alt job resets in OnOrphanedJobComplete().
+EVENT_TYPE(ALT_JOB_DELETED_IN_ON_ORPHANED_JOB_COMPLETE)
+
+// ===========================================================================
+//
+// END OF Deubg Net Logs
+//
+// ===========================================================================
+
// Marks the start/end of a HttpStreamFactoryImpl::JobController.
// The following parameters are attached:
// {
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller.cc ('k') | net/log/net_log_source_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698