| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/glue/webkit_glue.h" | 5 #include "webkit/glue/webkit_glue.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "webkit/glue/user_agent.h" | 10 #include "webkit/glue/user_agent.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 bool IsProtocolSupportedForMedia(const GURL& url) { | 42 bool IsProtocolSupportedForMedia(const GURL& url) { |
| 43 if (url.SchemeIsFile() || | 43 if (url.SchemeIsFile() || |
| 44 url.SchemeIs("http") || | 44 url.SchemeIs("http") || |
| 45 url.SchemeIs("https") || | 45 url.SchemeIs("https") || |
| 46 url.SchemeIs("data")) | 46 url.SchemeIs("data")) |
| 47 return true; | 47 return true; |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| 50 | 50 |
| 51 std::string BuildUserAgent(bool mimic_windows) { | |
| 52 return webkit_glue::BuildUserAgentHelper(mimic_windows, | |
| 53 "DumpRenderTree/0.0.0.0"); | |
| 54 } | |
| 55 | |
| 56 bool GetPluginFinderURL(std::string* plugin_finder_url) { | 51 bool GetPluginFinderURL(std::string* plugin_finder_url) { |
| 57 return false; | 52 return false; |
| 58 } | 53 } |
| 59 | 54 |
| 60 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
| 61 bool DownloadUrl(const std::string& url, HWND caller_window) { | 56 bool DownloadUrl(const std::string& url, HWND caller_window) { |
| 62 return false; | 57 return false; |
| 63 } | 58 } |
| 64 #endif | 59 #endif |
| 65 | 60 |
| 66 void EnableSpdy(bool enable) { | 61 void EnableSpdy(bool enable) { |
| 67 } | 62 } |
| 68 | 63 |
| 69 void UserMetricsRecordAction(const std::string& action) { | 64 void UserMetricsRecordAction(const std::string& action) { |
| 70 } | 65 } |
| 71 | 66 |
| 72 #if defined(OS_LINUX) | 67 #if defined(OS_LINUX) |
| 73 int MatchFontWithFallback(const std::string& face, bool bold, | 68 int MatchFontWithFallback(const std::string& face, bool bold, |
| 74 bool italic, int charset) { | 69 bool italic, int charset) { |
| 75 return -1; | 70 return -1; |
| 76 } | 71 } |
| 77 | 72 |
| 78 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 73 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
| 79 size_t* output_length) { | 74 size_t* output_length) { |
| 80 return false; | 75 return false; |
| 81 } | 76 } |
| 82 #endif | 77 #endif |
| 83 | 78 |
| 84 } // namespace webkit_glue | 79 } // namespace webkit_glue |
| OLD | NEW |