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

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

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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.h ('k') | ios/web/webui/url_data_manager_ios.h » ('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/shared_resources_data_source_ios.h" 5 #include "ios/web/webui/shared_resources_data_source_ios.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
9 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
10 #include "grit/webui_resources_map.h" 12 #include "grit/webui_resources_map.h"
11 #include "ios/web/public/web_client.h" 13 #include "ios/web/public/web_client.h"
12 #include "net/base/mime_util.h" 14 #include "net/base/mime_util.h"
13 #include "ui/base/webui/web_ui_util.h" 15 #include "ui/base/webui/web_ui_util.h"
14 #include "ui/resources/grit/webui_resources.h" 16 #include "ui/resources/grit/webui_resources.h"
15 17
16 namespace web { 18 namespace web {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 67 }
66 68
67 std::string SharedResourcesDataSourceIOS::GetMimeType( 69 std::string SharedResourcesDataSourceIOS::GetMimeType(
68 const std::string& path) const { 70 const std::string& path) const {
69 std::string mime_type; 71 std::string mime_type;
70 net::GetMimeTypeFromFile(base::FilePath().AppendASCII(path), &mime_type); 72 net::GetMimeTypeFromFile(base::FilePath().AppendASCII(path), &mime_type);
71 return mime_type; 73 return mime_type;
72 } 74 }
73 75
74 } // namespace web 76 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/webui/shared_resources_data_source_ios.h ('k') | ios/web/webui/url_data_manager_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698