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

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

Issue 7811006: Add full support for filesystem URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better content_settings_pattern.cc changes. Created 9 years 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 "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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698