| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/chrome/browser/web_resource/web_resource_util.h" | 5 #include "ios/chrome/browser/web_resource/web_resource_util.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
| 11 #include "base/task_runner_util.h" | 11 #include "base/task_runner_util.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "base/values.h" | 13 #include "base/values.h" |
| 13 #include "ios/web/public/web_thread.h" | 14 #include "ios/web/public/web_thread.h" |
| 14 | 15 |
| 15 namespace web_resource { | 16 namespace web_resource { |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 const char kInvalidDataTypeError[] = | 20 const char kInvalidDataTypeError[] = |
| 20 "Data from web resource server is missing or not valid JSON."; | 21 "Data from web resource server is missing or not valid JSON."; |
| 21 | 22 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 success_callback, error_callback)); | 72 success_callback, error_callback)); |
| 72 } | 73 } |
| 73 | 74 |
| 74 } // namespace | 75 } // namespace |
| 75 | 76 |
| 76 WebResourceService::ParseJSONCallback GetIOSChromeParseJSONCallback() { | 77 WebResourceService::ParseJSONCallback GetIOSChromeParseJSONCallback() { |
| 77 return base::Bind(&StartParseJSONAsync); | 78 return base::Bind(&StartParseJSONAsync); |
| 78 } | 79 } |
| 79 | 80 |
| 80 } // namespace web_resource | 81 } // namespace web_resource |
| OLD | NEW |