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

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

Issue 6713084: Move the rest of the renderer->browser messages that belong in content. Also do a bunch of cleanup: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 #include "base/threading/thread_local.h" 22 #include "base/threading/thread_local.h"
23 #include "base/utf_string_conversions.h" 23 #include "base/utf_string_conversions.h"
24 #include "base/values.h" 24 #include "base/values.h"
25 #include "chrome/common/child_process_logging.h" 25 #include "chrome/common/child_process_logging.h"
26 #include "chrome/common/chrome_switches.h" 26 #include "chrome/common/chrome_switches.h"
27 #include "chrome/common/extensions/extension.h" 27 #include "chrome/common/extensions/extension.h"
28 #include "chrome/common/extensions/extension_localization_peer.h" 28 #include "chrome/common/extensions/extension_localization_peer.h"
29 #include "chrome/common/extensions/extension_set.h" 29 #include "chrome/common/extensions/extension_set.h"
30 #include "chrome/common/render_messages.h" 30 #include "chrome/common/render_messages.h"
31 #include "chrome/common/render_messages_params.h" 31 #include "chrome/common/render_messages_params.h"
32 #include "chrome/common/safebrowsing_messages.h"
32 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
33 #include "chrome/renderer/automation/dom_automation_v8_extension.h" 34 #include "chrome/renderer/automation/dom_automation_v8_extension.h"
34 #include "chrome/renderer/devtools_agent_filter.h" 35 #include "chrome/renderer/devtools_agent_filter.h"
35 #include "chrome/renderer/extension_groups.h" 36 #include "chrome/renderer/extension_groups.h"
36 #include "chrome/renderer/extensions/chrome_app_bindings.h" 37 #include "chrome/renderer/extensions/chrome_app_bindings.h"
37 #include "chrome/renderer/extensions/event_bindings.h" 38 #include "chrome/renderer/extensions/event_bindings.h"
38 #include "chrome/renderer/extensions/extension_process_bindings.h" 39 #include "chrome/renderer/extensions/extension_process_bindings.h"
39 #include "chrome/renderer/extensions/js_only_v8_extensions.h" 40 #include "chrome/renderer/extensions/js_only_v8_extensions.h"
40 #include "chrome/renderer/extensions/renderer_extension_bindings.h" 41 #include "chrome/renderer/extensions/renderer_extension_bindings.h"
41 #include "chrome/renderer/external_extension.h" 42 #include "chrome/renderer/external_extension.h"
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 OnExtensionSetHostPermissions) 691 OnExtensionSetHostPermissions)
691 IPC_MESSAGE_HANDLER(DOMStorageMsg_Event, 692 IPC_MESSAGE_HANDLER(DOMStorageMsg_Event,
692 OnDOMStorageEvent) 693 OnDOMStorageEvent)
693 IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_Init, 694 IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_Init,
694 OnInitSpellChecker) 695 OnInitSpellChecker)
695 IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_WordAdded, 696 IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_WordAdded,
696 OnSpellCheckWordAdded) 697 OnSpellCheckWordAdded)
697 IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_EnableAutoSpellCorrect, 698 IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_EnableAutoSpellCorrect,
698 OnSpellCheckEnableAutoSpellCorrect) 699 OnSpellCheckEnableAutoSpellCorrect)
699 IPC_MESSAGE_HANDLER(GpuMsg_GpuChannelEstablished, OnGpuChannelEstablished) 700 IPC_MESSAGE_HANDLER(GpuMsg_GpuChannelEstablished, OnGpuChannelEstablished)
700 IPC_MESSAGE_HANDLER(ViewMsg_SetPhishingModel, OnSetPhishingModel) 701 IPC_MESSAGE_HANDLER(SafeBrowsingMsg_SetPhishingModel, OnSetPhishingModel)
701 IPC_MESSAGE_UNHANDLED(handled = false) 702 IPC_MESSAGE_UNHANDLED(handled = false)
702 IPC_END_MESSAGE_MAP() 703 IPC_END_MESSAGE_MAP()
703 return handled; 704 return handled;
704 } 705 }
705 706
706 void RenderThread::OnSetNextPageID(int32 next_page_id) { 707 void RenderThread::OnSetNextPageID(int32 next_page_id) {
707 // This should only be called at process initialization time, so we shouldn't 708 // This should only be called at process initialization time, so we shouldn't
708 // have to worry about thread-safety. 709 // have to worry about thread-safety.
709 RenderView::SetNextPageID(next_page_id); 710 RenderView::SetNextPageID(next_page_id);
710 } 711 }
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 } 1181 }
1181 1182
1182 return false; 1183 return false;
1183 } 1184 }
1184 1185
1185 void RenderThread::RegisterExtension(v8::Extension* extension, 1186 void RenderThread::RegisterExtension(v8::Extension* extension,
1186 bool restrict_to_extensions) { 1187 bool restrict_to_extensions) {
1187 WebScriptController::registerExtension(extension); 1188 WebScriptController::registerExtension(extension);
1188 v8_extensions_[extension->name()] = restrict_to_extensions; 1189 v8_extensions_[extension->name()] = restrict_to_extensions;
1189 } 1190 }
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper_win.cc ('k') | chrome/renderer/safe_browsing/malware_dom_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698