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

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

Issue 397933003: Service Workers: Clean up cpplint.py warnings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 <map>
8 #include <string>
9 #include <vector>
10
7 #include "base/bind.h" 11 #include "base/bind.h"
8 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
9 #include "content/browser/service_worker/service_worker_fetch_dispatcher.h" 13 #include "content/browser/service_worker/service_worker_fetch_dispatcher.h"
10 #include "content/browser/service_worker/service_worker_provider_host.h" 14 #include "content/browser/service_worker/service_worker_provider_host.h"
11 #include "net/http/http_request_headers.h" 15 #include "net/http/http_request_headers.h"
12 #include "net/http/http_response_headers.h" 16 #include "net/http/http_response_headers.h"
13 #include "net/http/http_response_info.h" 17 #include "net/http/http_response_info.h"
14 #include "net/http/http_util.h" 18 #include "net/http/http_util.h"
15 #include "webkit/browser/blob/blob_data_handle.h" 19 #include "webkit/browser/blob/blob_data_handle.h"
16 #include "webkit/browser/blob/blob_storage_context.h" 20 #include "webkit/browser/blob/blob_storage_context.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 void ServiceWorkerURLRequestJob::DeliverErrorResponse() { 303 void ServiceWorkerURLRequestJob::DeliverErrorResponse() {
300 // TODO(falken): Print an error to the console of the ServiceWorker and of 304 // TODO(falken): Print an error to the console of the ServiceWorker and of
301 // the requesting page. 305 // the requesting page.
302 CreateResponseHeader(500, 306 CreateResponseHeader(500,
303 "Service Worker Response Error", 307 "Service Worker Response Error",
304 std::map<std::string, std::string>()); 308 std::map<std::string, std::string>());
305 CommitResponseHeader(); 309 CommitResponseHeader();
306 } 310 }
307 311
308 } // namespace content 312 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698