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

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

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 years, 11 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 "ios/web/webui/shared_resources_data_source_ios.h" 5 #include "ios/web/webui/shared_resources_data_source_ios.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "ios/web/public/web_client.h" 12 #import "ios/web/public/web_client.h"
13 #include "net/base/mime_util.h" 13 #include "net/base/mime_util.h"
14 #include "ui/base/webui/web_ui_util.h" 14 #include "ui/base/webui/web_ui_util.h"
15 #include "ui/resources/grit/webui_resources.h" 15 #include "ui/resources/grit/webui_resources.h"
16 #include "ui/resources/grit/webui_resources_map.h" 16 #include "ui/resources/grit/webui_resources_map.h"
17 17
18 #if !defined(__has_feature) || !__has_feature(objc_arc) 18 #if !defined(__has_feature) || !__has_feature(objc_arc)
19 #error "This file requires ARC support." 19 #error "This file requires ARC support."
20 #endif 20 #endif
21 21
22 namespace web { 22 namespace web {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 std::string SharedResourcesDataSourceIOS::GetMimeType( 71 std::string SharedResourcesDataSourceIOS::GetMimeType(
72 const std::string& path) const { 72 const std::string& path) const {
73 std::string mime_type; 73 std::string mime_type;
74 net::GetMimeTypeFromFile(base::FilePath().AppendASCII(path), &mime_type); 74 net::GetMimeTypeFromFile(base::FilePath().AppendASCII(path), &mime_type);
75 return mime_type; 75 return mime_type;
76 } 76 }
77 77
78 } // namespace web 78 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698