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

Side by Side Diff: ios/web/webui/url_data_manager_ios_backend.mm

Issue 2340343002: [ARC] Converts part of ios/web/ui to ARC. (Closed)
Patch Set: Fixes unit test Created 4 years, 3 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
« no previous file with comments | « ios/web/webui/shared_resources_data_source_ios.mm ('k') | ios/web/webui/url_data_source_ios.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ios/web/webui/url_data_manager_ios_backend.h" 5 #include "ios/web/webui/url_data_manager_ios_backend.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 18 matching lines...) Expand all
29 #include "net/base/io_buffer.h" 29 #include "net/base/io_buffer.h"
30 #include "net/base/net_errors.h" 30 #include "net/base/net_errors.h"
31 #include "net/http/http_response_headers.h" 31 #include "net/http/http_response_headers.h"
32 #include "net/http/http_status_code.h" 32 #include "net/http/http_status_code.h"
33 #include "net/url_request/url_request.h" 33 #include "net/url_request/url_request.h"
34 #include "net/url_request/url_request_context.h" 34 #include "net/url_request/url_request_context.h"
35 #include "net/url_request/url_request_job.h" 35 #include "net/url_request/url_request_job.h"
36 #include "net/url_request/url_request_job_factory.h" 36 #include "net/url_request/url_request_job_factory.h"
37 #include "url/url_util.h" 37 #include "url/url_util.h"
38 38
39 #if !defined(__has_feature) || !__has_feature(objc_arc)
40 #error "This file requires ARC support."
41 #endif
42
39 using web::WebThread; 43 using web::WebThread;
40 44
41 namespace web { 45 namespace web {
42 46
43 namespace { 47 namespace {
44 48
45 // TODO(tsepez) remove unsafe-eval when bidichecker_packaged.js fixed. 49 // TODO(tsepez) remove unsafe-eval when bidichecker_packaged.js fixed.
46 const char kChromeURLContentSecurityPolicyHeaderBase[] = 50 const char kChromeURLContentSecurityPolicyHeaderBase[] =
47 "Content-Security-Policy: script-src chrome://resources " 51 "Content-Security-Policy: script-src chrome://resources "
48 "'self' 'unsafe-eval'; "; 52 "'self' 'unsafe-eval'; ";
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // Forward this data on to the pending net::URLRequest, if it exists. 521 // Forward this data on to the pending net::URLRequest, if it exists.
518 PendingRequestMap::iterator i = pending_requests_.find(request_id); 522 PendingRequestMap::iterator i = pending_requests_.find(request_id);
519 if (i != pending_requests_.end()) { 523 if (i != pending_requests_.end()) {
520 URLRequestChromeJob* job(i->second); 524 URLRequestChromeJob* job(i->second);
521 pending_requests_.erase(i); 525 pending_requests_.erase(i);
522 job->DataAvailable(bytes); 526 job->DataAvailable(bytes);
523 } 527 }
524 } 528 }
525 529
526 } // namespace web 530 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/webui/shared_resources_data_source_ios.mm ('k') | ios/web/webui/url_data_source_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698