OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 WideToUTF8(url, url_length, &url_string); | 151 WideToUTF8(url, url_length, &url_string); |
152 const std::string host = GURL(url_string).host(); | 152 const std::string host = GURL(url_string).host(); |
153 if (!host.empty()) | 153 if (!host.empty()) |
154 DnsPrefetchCString(host.data(), host.length()); | 154 DnsPrefetchCString(host.data(), host.length()); |
155 } | 155 } |
156 | 156 |
157 void AppendToLog(const char* file, int line, const char* msg) { | 157 void AppendToLog(const char* file, int line, const char* msg) { |
158 logging::LogMessage(file, line).stream() << msg; | 158 logging::LogMessage(file, line).stream() << msg; |
159 } | 159 } |
160 | 160 |
161 StringPiece GetDataResource(int resource_id) { | 161 base::StringPiece GetDataResource(int resource_id) { |
162 return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); | 162 return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); |
163 } | 163 } |
164 | 164 |
165 #if defined(OS_WIN) | 165 #if defined(OS_WIN) |
166 HCURSOR LoadCursor(int cursor_id) { | 166 HCURSOR LoadCursor(int cursor_id) { |
167 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); | 167 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); |
168 } | 168 } |
169 #endif | 169 #endif |
170 | 170 |
171 // Clipboard glue | 171 // Clipboard glue |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 void CloseIdleConnections() { | 244 void CloseIdleConnections() { |
245 RenderThread::current()->CloseIdleConnections(); | 245 RenderThread::current()->CloseIdleConnections(); |
246 } | 246 } |
247 | 247 |
248 void SetCacheMode(bool enabled) { | 248 void SetCacheMode(bool enabled) { |
249 RenderThread::current()->SetCacheMode(enabled); | 249 RenderThread::current()->SetCacheMode(enabled); |
250 } | 250 } |
251 | 251 |
252 } // namespace webkit_glue | 252 } // namespace webkit_glue |
OLD | NEW |