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

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

Issue 2548001: Add resources to Linux DRT so things like the broken image (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: clean Created 10 years, 6 months 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
« no previous file with comments | « webkit/support/webkit_support.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/plugins/plugin_list.h" 10 #include "webkit/glue/plugins/plugin_list.h"
(...skipping 27 matching lines...) Expand all
38 38
39 bool IsProtocolSupportedForMedia(const GURL& url) { 39 bool IsProtocolSupportedForMedia(const GURL& url) {
40 if (url.SchemeIsFile() || 40 if (url.SchemeIsFile() ||
41 url.SchemeIs("http") || 41 url.SchemeIs("http") ||
42 url.SchemeIs("https") || 42 url.SchemeIs("https") ||
43 url.SchemeIs("data")) 43 url.SchemeIs("data"))
44 return true; 44 return true;
45 return false; 45 return false;
46 } 46 }
47 47
48 #if !defined(OS_MACOSX) && !defined(OS_WIN)
49 // These functions should be implemented in platform_support_*.cc
50 string16 GetLocalizedString(int message_id) {
51 // TODO(tkent): implement this.
52 return string16();
53 }
54
55 base::StringPiece GetDataResource(int resource_id) {
56 // TODO(tkent): implement this.
57 return "";
58 }
59 #endif
60
61 void CloseCurrentConnections() { 48 void CloseCurrentConnections() {
62 } 49 }
63 50
64 void SetCacheMode(bool enabled) { 51 void SetCacheMode(bool enabled) {
65 } 52 }
66 53
67 std::string GetProductVersion() { 54 std::string GetProductVersion() {
68 return std::string("DumpRenderTree/0.0.0.0"); 55 return std::string("DumpRenderTree/0.0.0.0");
69 } 56 }
70 57
71 bool GetPluginFinderURL(std::string* plugin_finder_url) { 58 bool GetPluginFinderURL(std::string* plugin_finder_url) {
72 return false; 59 return false;
73 } 60 }
74 61
75 #if defined(OS_WIN) 62 #if defined(OS_WIN)
76 bool DownloadUrl(const std::string& url, HWND caller_window) { 63 bool DownloadUrl(const std::string& url, HWND caller_window) {
77 return false; 64 return false;
78 } 65 }
79 #endif 66 #endif
80 67
81 } // namespace webkit_glue 68 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/support/webkit_support.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698