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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.icon_url = | 673 info.icon_url = |
674 extension->GetIconUrlAllowLargerSize(Extension::EXTENSION_ICON_MEDIUM); | 674 extension->GetIconURLAllowLargerSize(Extension::EXTENSION_ICON_MEDIUM); |
675 params.extensions.push_back(info); | 675 params.extensions.push_back(info); |
676 } | 676 } |
677 | 677 |
678 Send(new ViewMsg_ExtensionsUpdated(params)); | 678 Send(new ViewMsg_ExtensionsUpdated(params)); |
679 } | 679 } |
680 | 680 |
681 bool BrowserRenderProcessHost::FastShutdownIfPossible() { | 681 bool BrowserRenderProcessHost::FastShutdownIfPossible() { |
682 if (run_renderer_in_process()) | 682 if (run_renderer_in_process()) |
683 return false; // Single process mode can't do fast shutdown. | 683 return false; // Single process mode can't do fast shutdown. |
684 | 684 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 IPC::InvalidPlatformFileForTransit(), | 1066 IPC::InvalidPlatformFileForTransit(), |
1067 std::vector<std::string>(), | 1067 std::vector<std::string>(), |
1068 std::string(), | 1068 std::string(), |
1069 false)); | 1069 false)); |
1070 } | 1070 } |
1071 } | 1071 } |
1072 | 1072 |
1073 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1073 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
1074 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1074 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
1075 } | 1075 } |
OLD | NEW |