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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 3163044: Expose Extension Bindings to Component Applications (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: review chanecs Created 10 years, 3 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) 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 ExtensionsService* service = profile()->GetExtensionsService(); 662 ExtensionsService* service = profile()->GetExtensionsService();
663 if (!service) 663 if (!service)
664 return; 664 return;
665 ViewMsg_ExtensionsUpdated_Params params; 665 ViewMsg_ExtensionsUpdated_Params params;
666 for (size_t i = 0; i < service->extensions()->size(); ++i) { 666 for (size_t i = 0; i < service->extensions()->size(); ++i) {
667 Extension* extension = service->extensions()->at(i); 667 Extension* extension = service->extensions()->at(i);
668 ViewMsg_ExtensionRendererInfo info; 668 ViewMsg_ExtensionRendererInfo info;
669 info.id = extension->id(); 669 info.id = extension->id();
670 info.web_extent = extension->web_extent(); 670 info.web_extent = extension->web_extent();
671 info.name = extension->name(); 671 info.name = extension->name();
672 info.location = extension->location();
672 info.icon_url = 673 info.icon_url =
673 extension->GetIconUrlAllowLargerSize(Extension::EXTENSION_ICON_MEDIUM); 674 extension->GetIconUrlAllowLargerSize(Extension::EXTENSION_ICON_MEDIUM);
674 params.extensions.push_back(info); 675 params.extensions.push_back(info);
675 } 676 }
676 677
677 Send(new ViewMsg_ExtensionsUpdated(params)); 678 Send(new ViewMsg_ExtensionsUpdated(params));
678 } 679 }
679 680
680 bool BrowserRenderProcessHost::FastShutdownIfPossible() { 681 bool BrowserRenderProcessHost::FastShutdownIfPossible() {
681 if (run_renderer_in_process()) 682 if (run_renderer_in_process())
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 IPC::InvalidPlatformFileForTransit(), 1066 IPC::InvalidPlatformFileForTransit(),
1066 std::vector<std::string>(), 1067 std::vector<std::string>(),
1067 std::string(), 1068 std::string(),
1068 false)); 1069 false));
1069 } 1070 }
1070 } 1071 }
1071 1072
1072 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1073 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1073 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1074 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1074 } 1075 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_host.cc ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698