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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 23 matching lines...) Expand all
34 #include "content/public/browser/resource_request_info.h" 34 #include "content/public/browser/resource_request_info.h"
35 #include "content/public/browser/service_worker_context.h" 35 #include "content/public/browser/service_worker_context.h"
36 #include "content/public/common/referrer.h" 36 #include "content/public/common/referrer.h"
37 #include "net/base/net_errors.h" 37 #include "net/base/net_errors.h"
38 #include "net/http/http_request_headers.h" 38 #include "net/http/http_request_headers.h"
39 #include "net/http/http_response_headers.h" 39 #include "net/http/http_response_headers.h"
40 #include "net/http/http_response_info.h" 40 #include "net/http/http_response_info.h"
41 #include "net/http/http_util.h" 41 #include "net/http/http_util.h"
42 #include "net/log/net_log.h" 42 #include "net/log/net_log.h"
43 #include "net/log/net_log_event_type.h" 43 #include "net/log/net_log_event_type.h"
44 #include "net/log/net_log_with_source.h"
44 #include "storage/browser/blob/blob_data_builder.h" 45 #include "storage/browser/blob/blob_data_builder.h"
45 #include "storage/browser/blob/blob_data_handle.h" 46 #include "storage/browser/blob/blob_data_handle.h"
46 #include "storage/browser/blob/blob_storage_context.h" 47 #include "storage/browser/blob/blob_storage_context.h"
47 #include "ui/base/page_transition_types.h" 48 #include "ui/base/page_transition_types.h"
48 49
49 namespace content { 50 namespace content {
50 51
51 namespace { 52 namespace {
52 53
53 net::NetLogEventType RequestJobResultToNetEventType( 54 net::NetLogEventType RequestJobResultToNetEventType(
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 CreateFetchRequest(), active_worker, resource_type_, request()->net_log(), 890 CreateFetchRequest(), active_worker, resource_type_, request()->net_log(),
890 base::Bind(&ServiceWorkerURLRequestJob::DidPrepareFetchEvent, 891 base::Bind(&ServiceWorkerURLRequestJob::DidPrepareFetchEvent,
891 weak_factory_.GetWeakPtr(), active_worker), 892 weak_factory_.GetWeakPtr(), active_worker),
892 base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent, 893 base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent,
893 weak_factory_.GetWeakPtr()))); 894 weak_factory_.GetWeakPtr())));
894 worker_start_time_ = base::TimeTicks::Now(); 895 worker_start_time_ = base::TimeTicks::Now();
895 fetch_dispatcher_->Run(); 896 fetch_dispatcher_->Run();
896 } 897 }
897 898
898 } // namespace content 899 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698