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

Side by Side Diff: content/browser/service_worker/service_worker_url_request_job.cc

Issue 2086093004: service worker: Add net_log for fetch event dispatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use eventtypetyostring directly 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/browser/service_worker/service_worker_url_request_job.h" 5 #include "content/browser/service_worker/service_worker_url_request_job.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 DeliverErrorResponse(); 995 DeliverErrorResponse();
996 return; 996 return;
997 } 997 }
998 998
999 worker_already_activated_ = 999 worker_already_activated_ =
1000 active_worker->status() == ServiceWorkerVersion::ACTIVATED; 1000 active_worker->status() == ServiceWorkerVersion::ACTIVATED;
1001 initial_worker_status_ = active_worker->running_status(); 1001 initial_worker_status_ = active_worker->running_status();
1002 1002
1003 DCHECK(!fetch_dispatcher_); 1003 DCHECK(!fetch_dispatcher_);
1004 fetch_dispatcher_.reset(new ServiceWorkerFetchDispatcher( 1004 fetch_dispatcher_.reset(new ServiceWorkerFetchDispatcher(
1005 CreateFetchRequest(), active_worker, resource_type_, 1005 CreateFetchRequest(), active_worker, resource_type_, request()->net_log(),
1006 base::Bind(&ServiceWorkerURLRequestJob::DidPrepareFetchEvent, 1006 base::Bind(&ServiceWorkerURLRequestJob::DidPrepareFetchEvent,
1007 weak_factory_.GetWeakPtr(), active_worker), 1007 weak_factory_.GetWeakPtr(), active_worker),
1008 base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent, 1008 base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent,
1009 weak_factory_.GetWeakPtr()))); 1009 weak_factory_.GetWeakPtr())));
1010 worker_start_time_ = base::TimeTicks::Now(); 1010 worker_start_time_ = base::TimeTicks::Now();
1011 fetch_dispatcher_->Run(); 1011 fetch_dispatcher_->Run();
1012 } 1012 }
1013 1013
1014 } // namespace content 1014 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_fetch_dispatcher.cc ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698