Chromium Code Reviews

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

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/renderer_host/site_instance.cc » ('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) 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 16 matching lines...)
27 #include "base/thread.h" 27 #include "base/thread.h"
28 #include "base/thread_restrictions.h" 28 #include "base/thread_restrictions.h"
29 #include "chrome/browser/appcache/appcache_dispatcher_host.h" 29 #include "chrome/browser/appcache/appcache_dispatcher_host.h"
30 #include "chrome/browser/browser_child_process_host.h" 30 #include "chrome/browser/browser_child_process_host.h"
31 #include "chrome/browser/browser_process.h" 31 #include "chrome/browser/browser_process.h"
32 #include "chrome/browser/child_process_security_policy.h" 32 #include "chrome/browser/child_process_security_policy.h"
33 #include "chrome/browser/device_orientation/message_filter.h" 33 #include "chrome/browser/device_orientation/message_filter.h"
34 #include "chrome/browser/extensions/extension_event_router.h" 34 #include "chrome/browser/extensions/extension_event_router.h"
35 #include "chrome/browser/extensions/extension_function_dispatcher.h" 35 #include "chrome/browser/extensions/extension_function_dispatcher.h"
36 #include "chrome/browser/extensions/extension_message_service.h" 36 #include "chrome/browser/extensions/extension_message_service.h"
37 #include "chrome/browser/extensions/extensions_service.h" 37 #include "chrome/browser/extensions/extension_service.h"
38 #include "chrome/browser/extensions/user_script_master.h" 38 #include "chrome/browser/extensions/user_script_master.h"
39 #include "chrome/browser/file_system/file_system_dispatcher_host.h" 39 #include "chrome/browser/file_system/file_system_dispatcher_host.h"
40 #include "chrome/browser/gpu_process_host.h" 40 #include "chrome/browser/gpu_process_host.h"
41 #include "chrome/browser/history/history.h" 41 #include "chrome/browser/history/history.h"
42 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h" 42 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h"
43 #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h" 43 #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h"
44 #include "chrome/browser/io_thread.h" 44 #include "chrome/browser/io_thread.h"
45 #include "chrome/browser/mime_registry_message_filter.h" 45 #include "chrome/browser/mime_registry_message_filter.h"
46 #include "chrome/browser/platform_util.h" 46 #include "chrome/browser/platform_util.h"
47 #include "chrome/browser/plugin_service.h" 47 #include "chrome/browser/plugin_service.h"
(...skipping 704 matching lines...)
752 } 752 }
753 753
754 void BrowserRenderProcessHost::SendExtensionInfo() { 754 void BrowserRenderProcessHost::SendExtensionInfo() {
755 // Check if the process is still starting and we don't have a handle for it 755 // Check if the process is still starting and we don't have a handle for it
756 // yet, in which case this will happen later when InitVisitedLinks is called. 756 // yet, in which case this will happen later when InitVisitedLinks is called.
757 if (!run_renderer_in_process() && 757 if (!run_renderer_in_process() &&
758 (!child_process_.get() || child_process_->IsStarting())) { 758 (!child_process_.get() || child_process_->IsStarting())) {
759 return; 759 return;
760 } 760 }
761 761
762 ExtensionsService* service = profile()->GetExtensionsService(); 762 ExtensionService* service = profile()->GetExtensionService();
763 if (!service) 763 if (!service)
764 return; 764 return;
765 ViewMsg_ExtensionsUpdated_Params params; 765 ViewMsg_ExtensionsUpdated_Params params;
766 for (size_t i = 0; i < service->extensions()->size(); ++i) { 766 for (size_t i = 0; i < service->extensions()->size(); ++i) {
767 const Extension* extension = service->extensions()->at(i); 767 const Extension* extension = service->extensions()->at(i);
768 ViewMsg_ExtensionRendererInfo info; 768 ViewMsg_ExtensionRendererInfo info;
769 info.id = extension->id(); 769 info.id = extension->id();
770 info.web_extent = extension->web_extent(); 770 info.web_extent = extension->web_extent();
771 info.name = extension->name(); 771 info.name = extension->name();
772 info.location = extension->location(); 772 info.location = extension->location();
(...skipping 469 matching lines...)
1242 IPC::PlatformFileForTransit file; 1242 IPC::PlatformFileForTransit file;
1243 #if defined(OS_POSIX) 1243 #if defined(OS_POSIX)
1244 file = base::FileDescriptor(model_file, false); 1244 file = base::FileDescriptor(model_file, false);
1245 #elif defined(OS_WIN) 1245 #elif defined(OS_WIN)
1246 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1246 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1247 false, DUPLICATE_SAME_ACCESS); 1247 false, DUPLICATE_SAME_ACCESS);
1248 #endif 1248 #endif
1249 Send(new ViewMsg_SetPhishingModel(file)); 1249 Send(new ViewMsg_SetPhishingModel(file));
1250 } 1250 }
1251 } 1251 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/renderer_host/site_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine