| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/renderer/render_thread.h" | 5 #include "chrome/renderer/render_thread.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 command_line.HasSwitch(switches::kNoJsRandomness)) { | 393 command_line.HasSwitch(switches::kNoJsRandomness)) { |
| 394 WebKit::registerExtension(extensions_v8::PlaybackExtension::Get()); | 394 WebKit::registerExtension(extensions_v8::PlaybackExtension::Get()); |
| 395 } | 395 } |
| 396 | 396 |
| 397 if (RenderProcess::current()->initialized_media_library()) | 397 if (RenderProcess::current()->initialized_media_library()) |
| 398 WebKit::enableMediaPlayer(); | 398 WebKit::enableMediaPlayer(); |
| 399 } | 399 } |
| 400 | 400 |
| 401 void RenderThread::OnExtensionMessageInvoke(const std::string& function_name, | 401 void RenderThread::OnExtensionMessageInvoke(const std::string& function_name, |
| 402 const ListValue& args) { | 402 const ListValue& args) { |
| 403 RendererExtensionBindings::Invoke(function_name, args); | 403 RendererExtensionBindings::Invoke(function_name, args, NULL); |
| 404 } | 404 } |
| 405 | 405 |
| 406 void RenderThread::OnPurgePluginListCache() { | 406 void RenderThread::OnPurgePluginListCache() { |
| 407 // The call below will cause a GetPlugins call with refresh=true, but at this | 407 // The call below will cause a GetPlugins call with refresh=true, but at this |
| 408 // point we already know that the browser has refreshed its list, so disable | 408 // point we already know that the browser has refreshed its list, so disable |
| 409 // refresh temporarily to prevent each renderer process causing the list to be | 409 // refresh temporarily to prevent each renderer process causing the list to be |
| 410 // regenerated. | 410 // regenerated. |
| 411 plugin_refresh_allowed_ = false; | 411 plugin_refresh_allowed_ = false; |
| 412 WebKit::resetPluginCache(); | 412 WebKit::resetPluginCache(); |
| 413 plugin_refresh_allowed_ = true; | 413 plugin_refresh_allowed_ = true; |
| 414 } | 414 } |
| OLD | NEW |