| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 ExtensionsService* service = profile()->GetExtensionsService(); | 663 ExtensionsService* service = profile()->GetExtensionsService(); |
| 664 if (!service) | 664 if (!service) |
| 665 return; | 665 return; |
| 666 ViewMsg_ExtensionsUpdated_Params params; | 666 ViewMsg_ExtensionsUpdated_Params params; |
| 667 for (size_t i = 0; i < service->extensions()->size(); ++i) { | 667 for (size_t i = 0; i < service->extensions()->size(); ++i) { |
| 668 Extension* extension = service->extensions()->at(i); | 668 Extension* extension = service->extensions()->at(i); |
| 669 ViewMsg_ExtensionRendererInfo info; | 669 ViewMsg_ExtensionRendererInfo info; |
| 670 info.id = extension->id(); | 670 info.id = extension->id(); |
| 671 info.web_extent = extension->web_extent(); | 671 info.web_extent = extension->web_extent(); |
| 672 info.name = extension->name(); | 672 info.name = extension->name(); |
| 673 info.location = extension->location(); |
| 673 info.icon_url = | 674 info.icon_url = |
| 674 extension->GetIconURLAllowLargerSize(Extension::EXTENSION_ICON_MEDIUM); | 675 extension->GetIconURLAllowLargerSize(Extension::EXTENSION_ICON_MEDIUM); |
| 675 params.extensions.push_back(info); | 676 params.extensions.push_back(info); |
| 676 } | 677 } |
| 677 | 678 |
| 678 Send(new ViewMsg_ExtensionsUpdated(params)); | 679 Send(new ViewMsg_ExtensionsUpdated(params)); |
| 679 } | 680 } |
| 680 | 681 |
| 681 bool BrowserRenderProcessHost::FastShutdownIfPossible() { | 682 bool BrowserRenderProcessHost::FastShutdownIfPossible() { |
| 682 if (run_renderer_in_process()) | 683 if (run_renderer_in_process()) |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 IPC::InvalidPlatformFileForTransit(), | 1074 IPC::InvalidPlatformFileForTransit(), |
| 1074 std::vector<std::string>(), | 1075 std::vector<std::string>(), |
| 1075 std::string(), | 1076 std::string(), |
| 1076 false)); | 1077 false)); |
| 1077 } | 1078 } |
| 1078 } | 1079 } |
| 1079 | 1080 |
| 1080 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1081 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1081 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1082 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1082 } | 1083 } |
| OLD | NEW |