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

Side by Side Diff: webkit/support/webkit_support_glue.cc

Issue 8616008: Remove IsProtocolSupportedForMedia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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"
10 #include "webkit/glue/user_agent.h" 9 #include "webkit/glue/user_agent.h"
11 #include "webkit/plugins/npapi/plugin_list.h" 10 #include "webkit/plugins/npapi/plugin_list.h"
12 11
13 // Functions needed by webkit_glue. 12 // Functions needed by webkit_glue.
14 13
15 namespace webkit_glue { 14 namespace webkit_glue {
16 15
17 void GetPlugins(bool refresh, 16 void GetPlugins(bool refresh,
18 std::vector<webkit::WebPluginInfo>* plugins) { 17 std::vector<webkit::WebPluginInfo>* plugins) {
19 if (refresh) 18 if (refresh)
(...skipping 12 matching lines...) Expand all
32 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { 31 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) {
33 plugins->erase(plugins->begin() + i); 32 plugins->erase(plugins->begin() + i);
34 } 33 }
35 } 34 }
36 } 35 }
37 } 36 }
38 37
39 void AppendToLog(const char*, int, const char*) { 38 void AppendToLog(const char*, int, const char*) {
40 } 39 }
41 40
42 bool IsProtocolSupportedForMedia(const GURL& url) {
43 if (url.SchemeIsFile() ||
44 url.SchemeIs("http") ||
45 url.SchemeIs("https") ||
46 url.SchemeIs("data"))
47 return true;
48 return false;
49 }
50
51 bool GetPluginFinderURL(std::string* plugin_finder_url) { 41 bool GetPluginFinderURL(std::string* plugin_finder_url) {
52 return false; 42 return false;
53 } 43 }
54 44
55 #if defined(OS_WIN) 45 #if defined(OS_WIN)
56 bool DownloadUrl(const std::string& url, HWND caller_window) { 46 bool DownloadUrl(const std::string& url, HWND caller_window) {
57 return false; 47 return false;
58 } 48 }
59 #endif 49 #endif
60 50
61 void EnableSpdy(bool enable) { 51 void EnableSpdy(bool enable) {
62 } 52 }
63 53
64 void UserMetricsRecordAction(const std::string& action) { 54 void UserMetricsRecordAction(const std::string& action) {
65 } 55 }
66 56
67 } // namespace webkit_glue 57 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698