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 "webkit/glue/user_agent.h" | 9 #include "webkit/glue/user_agent.h" |
10 | 10 |
11 // Functions needed by webkit_glue. | 11 // Functions needed by webkit_glue. |
12 | 12 |
13 namespace webkit_glue { | 13 namespace webkit_glue { |
14 | 14 |
15 void AppendToLog(const char*, int, const char*) { | 15 void AppendToLog(const char*, int, const char*) { |
16 } | 16 } |
17 | 17 |
| 18 bool IsProtocolSupportedForMedia(const GURL& url) { |
| 19 if (url.SchemeIsFile() || |
| 20 url.SchemeIs("http") || |
| 21 url.SchemeIs("https") || |
| 22 url.SchemeIs("data") || |
| 23 url.SchemeIsFileSystem()) |
| 24 return true; |
| 25 return false; |
| 26 } |
| 27 |
18 bool GetPluginFinderURL(std::string* plugin_finder_url) { | 28 bool GetPluginFinderURL(std::string* plugin_finder_url) { |
19 return false; | 29 return false; |
20 } | 30 } |
21 | 31 |
22 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
23 bool DownloadUrl(const std::string& url, HWND caller_window) { | 33 bool DownloadUrl(const std::string& url, HWND caller_window) { |
24 return false; | 34 return false; |
25 } | 35 } |
26 #endif | 36 #endif |
27 | 37 |
28 void EnableSpdy(bool enable) { | 38 void EnableSpdy(bool enable) { |
29 } | 39 } |
30 | 40 |
31 void UserMetricsRecordAction(const std::string& action) { | 41 void UserMetricsRecordAction(const std::string& action) { |
32 } | 42 } |
33 | 43 |
34 } // namespace webkit_glue | 44 } // namespace webkit_glue |
OLD | NEW |