Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 155707: Changed the extension.connect() API not to broadcast to all tabs. Added a (Closed)
Patch Set: review comments Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/renderer_extension_bindings.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698