| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 GURL GetInspectorURL() { | 196 GURL GetInspectorURL() { |
| 197 return GURL(std::string(chrome::kChromeUIScheme) + | 197 return GURL(std::string(chrome::kChromeUIScheme) + |
| 198 "://inspector/inspector.html"); | 198 "://inspector/inspector.html"); |
| 199 } | 199 } |
| 200 | 200 |
| 201 std::string GetUIResourceProtocol() { | 201 std::string GetUIResourceProtocol() { |
| 202 return "chrome"; | 202 return "chrome"; |
| 203 } | 203 } |
| 204 | 204 |
| 205 bool GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { | 205 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { |
| 206 if (!RenderThread::current()->plugin_refresh_allowed()) | 206 if (!RenderThread::current()->plugin_refresh_allowed()) |
| 207 refresh = false; | 207 refresh = false; |
| 208 return RenderThread::current()->Send(new ViewHostMsg_GetPlugins( | 208 RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins)); |
| 209 refresh, plugins)); | |
| 210 } | 209 } |
| 211 | 210 |
| 212 // static factory function | 211 // static factory function |
| 213 ResourceLoaderBridge* ResourceLoaderBridge::Create( | 212 ResourceLoaderBridge* ResourceLoaderBridge::Create( |
| 214 const std::string& method, | 213 const std::string& method, |
| 215 const GURL& url, | 214 const GURL& url, |
| 216 const GURL& first_party_for_cookies, | 215 const GURL& first_party_for_cookies, |
| 217 const GURL& referrer, | 216 const GURL& referrer, |
| 218 const std::string& frame_origin, | 217 const std::string& frame_origin, |
| 219 const std::string& main_frame_origin, | 218 const std::string& main_frame_origin, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 240 | 239 |
| 241 void CloseIdleConnections() { | 240 void CloseIdleConnections() { |
| 242 RenderThread::current()->CloseIdleConnections(); | 241 RenderThread::current()->CloseIdleConnections(); |
| 243 } | 242 } |
| 244 | 243 |
| 245 void SetCacheMode(bool enabled) { | 244 void SetCacheMode(bool enabled) { |
| 246 RenderThread::current()->SetCacheMode(enabled); | 245 RenderThread::current()->SetCacheMode(enabled); |
| 247 } | 246 } |
| 248 | 247 |
| 249 } // namespace webkit_glue | 248 } // namespace webkit_glue |
| OLD | NEW |