| 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 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <wininet.h> | 9 #include <wininet.h> |
| 10 #endif | 10 #endif |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 void ClipboardReadAsciiText(std::string* result) { | 234 void ClipboardReadAsciiText(std::string* result) { |
| 235 g_render_thread->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); | 235 g_render_thread->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void ClipboardReadHTML(std::wstring* markup, GURL* url) { | 238 void ClipboardReadHTML(std::wstring* markup, GURL* url) { |
| 239 g_render_thread->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); | 239 g_render_thread->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); |
| 240 } | 240 } |
| 241 | 241 |
| 242 GURL GetInspectorURL() { | 242 GURL GetInspectorURL() { |
| 243 return GURL("chrome://inspector/inspector.html"); | 243 return GURL("chrome-ui://inspector/inspector.html"); |
| 244 } | 244 } |
| 245 | 245 |
| 246 std::string GetUIResourceProtocol() { | 246 std::string GetUIResourceProtocol() { |
| 247 return "chrome"; | 247 return "chrome"; |
| 248 } | 248 } |
| 249 | 249 |
| 250 bool GetPlugins(bool refresh, | 250 bool GetPlugins(bool refresh, |
| 251 std::vector<WebPluginInfo>* plugins) { | 251 std::vector<WebPluginInfo>* plugins) { |
| 252 return g_render_thread->Send( | 252 return g_render_thread->Send( |
| 253 new ViewHostMsg_GetPlugins(refresh, plugins)); | 253 new ViewHostMsg_GetPlugins(refresh, plugins)); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // NOTE: Since this can be called from the plugin process, we might not have | 335 // NOTE: Since this can be called from the plugin process, we might not have |
| 336 // a RenderThread. Do nothing in that case. | 336 // a RenderThread. Do nothing in that case. |
| 337 if (g_render_thread) | 337 if (g_render_thread) |
| 338 g_render_thread->InformHostOfCacheStatsLater(); | 338 g_render_thread->InformHostOfCacheStatsLater(); |
| 339 } | 339 } |
| 340 | 340 |
| 341 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE | 341 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE |
| 342 | 342 |
| 343 } // namespace webkit_glue | 343 } // namespace webkit_glue |
| 344 | 344 |
| OLD | NEW |