| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 void ClipboardReadAsciiText(std::string* result) { | 202 void ClipboardReadAsciiText(std::string* result) { |
| 203 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); | 203 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void ClipboardReadHTML(string16* markup, GURL* url) { | 206 void ClipboardReadHTML(string16* markup, GURL* url) { |
| 207 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); | 207 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); |
| 208 } | 208 } |
| 209 | 209 |
| 210 GURL GetInspectorURL() { | 210 GURL GetInspectorURL() { |
| 211 return GURL(std::string(chrome::kChromeUIScheme) + | 211 return GURL(std::string(chrome::kChromeUIScheme) + |
| 212 "//inspector/inspector.html"); | 212 "://inspector/inspector.html"); |
| 213 } | 213 } |
| 214 | 214 |
| 215 std::string GetUIResourceProtocol() { | 215 std::string GetUIResourceProtocol() { |
| 216 return "chrome"; | 216 return "chrome"; |
| 217 } | 217 } |
| 218 | 218 |
| 219 bool GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { | 219 bool GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { |
| 220 if (!RenderThread::current()->plugin_refresh_allowed()) | 220 if (!RenderThread::current()->plugin_refresh_allowed()) |
| 221 refresh = false; | 221 refresh = false; |
| 222 return RenderThread::current()->Send(new ViewHostMsg_GetPlugins( | 222 return RenderThread::current()->Send(new ViewHostMsg_GetPlugins( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 247 void NotifyCacheStats() { | 247 void NotifyCacheStats() { |
| 248 // Update the browser about our cache | 248 // Update the browser about our cache |
| 249 // NOTE: Since this can be called from the plugin process, we might not have | 249 // NOTE: Since this can be called from the plugin process, we might not have |
| 250 // a RenderThread. Do nothing in that case. | 250 // a RenderThread. Do nothing in that case. |
| 251 if (!IsPluginProcess()) | 251 if (!IsPluginProcess()) |
| 252 RenderThread::current()->InformHostOfCacheStatsLater(); | 252 RenderThread::current()->InformHostOfCacheStatsLater(); |
| 253 } | 253 } |
| 254 | 254 |
| 255 | 255 |
| 256 } // namespace webkit_glue | 256 } // namespace webkit_glue |
| OLD | NEW |