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

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

Issue 348071: First half of http://codereview.chromium.org/274014/show... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 const std::string& extension_id, 259 const std::string& extension_id,
260 const std::vector<std::string>& permissions) { 260 const std::vector<std::string>& permissions) {
261 ExtensionProcessBindings::SetAPIPermissions(extension_id, permissions); 261 ExtensionProcessBindings::SetAPIPermissions(extension_id, permissions);
262 } 262 }
263 263
264 void RenderThread::OnExtensionSetHostPermissions( 264 void RenderThread::OnExtensionSetHostPermissions(
265 const GURL& extension_url, const std::vector<URLPattern>& permissions) { 265 const GURL& extension_url, const std::vector<URLPattern>& permissions) {
266 ExtensionProcessBindings::SetHostPermissions(extension_url, permissions); 266 ExtensionProcessBindings::SetHostPermissions(extension_url, permissions);
267 } 267 }
268 268
269 void RenderThread::OnDOMStorageEvent(const string16& key, 269 void RenderThread::OnDOMStorageEvent(
270 const NullableString16& old_value, const NullableString16& new_value, 270 const ViewMsg_DOMStorageEvent_Params& params) {
271 const string16& origin, DOMStorageType dom_storage_type) { 271 if (!dom_storage_event_dispatcher_.get())
272 if (!dom_storage_event_dispatcher_.get()) {
273 dom_storage_event_dispatcher_.reset(WebStorageEventDispatcher::create()); 272 dom_storage_event_dispatcher_.reset(WebStorageEventDispatcher::create());
274 } 273 dom_storage_event_dispatcher_->dispatchStorageEvent(params.key_,
275 dom_storage_event_dispatcher_->dispatchStorageEvent(key, old_value, new_value, 274 params.old_value_, params.new_value_, params.origin_,
276 origin, dom_storage_type == DOM_STORAGE_LOCAL); 275 params.storage_type_ == DOM_STORAGE_LOCAL);
277 } 276 }
278 277
279 void RenderThread::OnExtensionSetL10nMessages( 278 void RenderThread::OnExtensionSetL10nMessages(
280 const std::string& extension_id, 279 const std::string& extension_id,
281 const std::map<std::string, std::string>& l10n_messages) { 280 const std::map<std::string, std::string>& l10n_messages) {
282 ExtensionProcessBindings::SetL10nMessages(extension_id, l10n_messages); 281 ExtensionProcessBindings::SetL10nMessages(extension_id, l10n_messages);
283 } 282 }
284 283
285 void RenderThread::OnControlMessageReceived(const IPC::Message& msg) { 284 void RenderThread::OnControlMessageReceived(const IPC::Message& msg) {
286 // App cache messages are handled by a delegate. 285 // App cache messages are handled by a delegate.
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 void RenderThread::OnPurgePluginListCache(bool reload_pages) { 608 void RenderThread::OnPurgePluginListCache(bool reload_pages) {
610 EnsureWebKitInitialized(); 609 EnsureWebKitInitialized();
611 // The call below will cause a GetPlugins call with refresh=true, but at this 610 // The call below will cause a GetPlugins call with refresh=true, but at this
612 // point we already know that the browser has refreshed its list, so disable 611 // point we already know that the browser has refreshed its list, so disable
613 // refresh temporarily to prevent each renderer process causing the list to be 612 // refresh temporarily to prevent each renderer process causing the list to be
614 // regenerated. 613 // regenerated.
615 plugin_refresh_allowed_ = false; 614 plugin_refresh_allowed_ = false;
616 WebKit::resetPluginCache(reload_pages); 615 WebKit::resetPluginCache(reload_pages);
617 plugin_refresh_allowed_ = true; 616 plugin_refresh_allowed_ = true;
618 } 617 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698