| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webkitclient_impl.h" | 5 #include "webkit/glue/webkitclient_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "base/stats_counters.h" | 14 #include "base/stats_counters.h" |
| 15 #include "base/string_util.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "base/trace_event.h" | 16 #include "base/trace_event.h" |
| 17 #include "grit/webkit_resources.h" | 17 #include "grit/webkit_resources.h" |
| 18 #include "grit/webkit_strings.h" | 18 #include "grit/webkit_strings.h" |
| 19 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
| 20 #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h" |
| 21 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
| 22 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" |
| 23 #include "third_party/WebKit/WebKit/chromium/public/WebPluginListBuilder.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebPluginListBuilder.h" |
| 24 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
| 25 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) { | 381 bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) { |
| 382 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 382 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
| 383 return file_util::DirectoryExists(file_path); | 383 return file_util::DirectoryExists(file_path); |
| 384 } | 384 } |
| 385 | 385 |
| 386 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { | 386 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { |
| 387 return net::FilePathToFileURL(webkit_glue::WebStringToFilePath(path)); | 387 return net::FilePathToFileURL(webkit_glue::WebStringToFilePath(path)); |
| 388 } | 388 } |
| 389 | 389 |
| 390 } // namespace webkit_glue | 390 } // namespace webkit_glue |
| OLD | NEW |