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

Side by Side Diff: ios/chrome/browser/web_resource/web_resource_util.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 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 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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/passwords/ios_chrome_password_store_factory.cc ('k') | ios/net/http_cache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698