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 |
51 bool GetPluginFinderURL(std::string* plugin_finder_url) { | 56 bool GetPluginFinderURL(std::string* plugin_finder_url) { |
52 return false; | 57 return false; |
53 } | 58 } |
54 | 59 |
55 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
56 bool DownloadUrl(const std::string& url, HWND caller_window) { | 61 bool DownloadUrl(const std::string& url, HWND caller_window) { |
57 return false; | 62 return false; |
58 } | 63 } |
59 #endif | 64 #endif |
60 | 65 |
61 void EnableSpdy(bool enable) { | 66 void EnableSpdy(bool enable) { |
62 } | 67 } |
63 | 68 |
64 void UserMetricsRecordAction(const std::string& action) { | 69 void UserMetricsRecordAction(const std::string& action) { |
65 } | 70 } |
66 | 71 |
67 #if defined(OS_LINUX) | 72 #if defined(OS_LINUX) |
68 int MatchFontWithFallback(const std::string& face, bool bold, | 73 int MatchFontWithFallback(const std::string& face, bool bold, |
69 bool italic, int charset) { | 74 bool italic, int charset) { |
70 return -1; | 75 return -1; |
71 } | 76 } |
72 | 77 |
73 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 78 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
74 size_t* output_length) { | 79 size_t* output_length) { |
75 return false; | 80 return false; |
76 } | 81 } |
77 #endif | 82 #endif |
78 | 83 |
79 } // namespace webkit_glue | 84 } // namespace webkit_glue |
OLD | NEW |