| 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 <windows.h> | 7 #include <windows.h> |
| 8 #include <wininet.h> | 8 #include <wininet.h> |
| 9 | 9 |
| 10 #include "base/clipboard.h" | 10 #include "base/clipboard.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 void webkit_glue::ClipboardReadAsciiText(std::string* result) { | 220 void webkit_glue::ClipboardReadAsciiText(std::string* result) { |
| 221 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); | 221 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void webkit_glue::ClipboardReadHTML(std::wstring* markup, GURL* url) { | 224 void webkit_glue::ClipboardReadHTML(std::wstring* markup, GURL* url) { |
| 225 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); | 225 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); |
| 226 } | 226 } |
| 227 | 227 |
| 228 GURL webkit_glue::GetInspectorURL() { | 228 GURL webkit_glue::GetInspectorURL() { |
| 229 return GURL("chrome-resource://inspector/inspector.html"); | 229 return GURL("chrome://inspector/inspector.html"); |
| 230 } | 230 } |
| 231 | 231 |
| 232 std::string webkit_glue::GetUIResourceProtocol() { | 232 std::string webkit_glue::GetUIResourceProtocol() { |
| 233 return "chrome-resource"; | 233 return "chrome"; |
| 234 } | 234 } |
| 235 | 235 |
| 236 bool webkit_glue::GetPlugins(bool refresh, | 236 bool webkit_glue::GetPlugins(bool refresh, |
| 237 std::vector<WebPluginInfo>* plugins) { | 237 std::vector<WebPluginInfo>* plugins) { |
| 238 return RenderThread::current()->Send( | 238 return RenderThread::current()->Send( |
| 239 new ViewHostMsg_GetPlugins(refresh, plugins)); | 239 new ViewHostMsg_GetPlugins(refresh, plugins)); |
| 240 } | 240 } |
| 241 | 241 |
| 242 bool webkit_glue::EnsureFontLoaded(HFONT font) { | 242 bool webkit_glue::EnsureFontLoaded(HFONT font) { |
| 243 LOGFONT logfont; | 243 LOGFONT logfont; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // NOTE: Since this can be called from the plugin process, we might not have | 312 // NOTE: Since this can be called from the plugin process, we might not have |
| 313 // a RenderThread. Do nothing in that case. | 313 // a RenderThread. Do nothing in that case. |
| 314 if (RenderThread::current()) | 314 if (RenderThread::current()) |
| 315 RenderThread::current()->InformHostOfCacheStatsLater(); | 315 RenderThread::current()->InformHostOfCacheStatsLater(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE | 318 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE |
| 319 | 319 |
| 320 } // namespace webkit_glue | 320 } // namespace webkit_glue |
| 321 | 321 |
| OLD | NEW |