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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 10024013: chromeos: Add support for the battery status API on chromeos. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 24 matching lines...) Expand all
35 #include "base/rand_util.h" 35 #include "base/rand_util.h"
36 #include "base/stl_util.h" 36 #include "base/stl_util.h"
37 #include "base/string_util.h" 37 #include "base/string_util.h"
38 #include "base/supports_user_data.h" 38 #include "base/supports_user_data.h"
39 #include "base/sys_info.h" 39 #include "base/sys_info.h"
40 #include "base/threading/thread.h" 40 #include "base/threading/thread.h"
41 #include "base/threading/thread_restrictions.h" 41 #include "base/threading/thread_restrictions.h"
42 #include "base/tracked_objects.h" 42 #include "base/tracked_objects.h"
43 #include "content/browser/appcache/appcache_dispatcher_host.h" 43 #include "content/browser/appcache/appcache_dispatcher_host.h"
44 #include "content/browser/appcache/chrome_appcache_service.h" 44 #include "content/browser/appcache/chrome_appcache_service.h"
45 #include "content/browser/battery_status/battery_status_message_filter.h"
45 #include "content/browser/browser_main.h" 46 #include "content/browser/browser_main.h"
46 #include "content/browser/browser_main_loop.h" 47 #include "content/browser/browser_main_loop.h"
47 #include "content/browser/child_process_security_policy_impl.h" 48 #include "content/browser/child_process_security_policy_impl.h"
48 #include "content/browser/device_orientation/orientation_message_filter.h" 49 #include "content/browser/device_orientation/orientation_message_filter.h"
49 #include "content/browser/dom_storage/dom_storage_context_impl.h" 50 #include "content/browser/dom_storage/dom_storage_context_impl.h"
50 #include "content/browser/dom_storage/dom_storage_message_filter.h" 51 #include "content/browser/dom_storage/dom_storage_message_filter.h"
51 #include "content/browser/download/mhtml_generation_manager.h" 52 #include "content/browser/download/mhtml_generation_manager.h"
52 #include "content/browser/fileapi/chrome_blob_storage_context.h" 53 #include "content/browser/fileapi/chrome_blob_storage_context.h"
53 #include "content/browser/fileapi/fileapi_message_filter.h" 54 #include "content/browser/fileapi/fileapi_message_filter.h"
54 #include "content/browser/geolocation/geolocation_dispatcher_host.h" 55 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 channel_->AddFilter(new device_orientation::OrientationMessageFilter()); 573 channel_->AddFilter(new device_orientation::OrientationMessageFilter());
573 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 574 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
574 channel_->AddFilter(new MimeRegistryMessageFilter()); 575 channel_->AddFilter(new MimeRegistryMessageFilter());
575 channel_->AddFilter(new DatabaseMessageFilter( 576 channel_->AddFilter(new DatabaseMessageFilter(
576 BrowserContext::GetDatabaseTracker(browser_context))); 577 BrowserContext::GetDatabaseTracker(browser_context)));
577 #if defined(OS_MACOSX) 578 #if defined(OS_MACOSX)
578 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); 579 channel_->AddFilter(new TextInputClientMessageFilter(GetID()));
579 #elif defined(OS_WIN) 580 #elif defined(OS_WIN)
580 channel_->AddFilter(new FontCacheDispatcher()); 581 channel_->AddFilter(new FontCacheDispatcher());
581 #endif 582 #endif
583 channel_->AddFilter(new content::BatteryStatusMessageFilter());
582 584
583 SocketStreamDispatcherHost* socket_stream_dispatcher_host = 585 SocketStreamDispatcherHost* socket_stream_dispatcher_host =
584 new SocketStreamDispatcherHost(GetID(), 586 new SocketStreamDispatcherHost(GetID(),
585 new RendererURLRequestContextSelector(browser_context, GetID()), 587 new RendererURLRequestContextSelector(browser_context, GetID()),
586 resource_context); 588 resource_context);
587 channel_->AddFilter(socket_stream_dispatcher_host); 589 channel_->AddFilter(socket_stream_dispatcher_host);
588 590
589 channel_->AddFilter(new WorkerMessageFilter(GetID(), resource_context, 591 channel_->AddFilter(new WorkerMessageFilter(GetID(), resource_context,
590 base::Bind(&RenderWidgetHelper::GetNextRoutingID, 592 base::Bind(&RenderWidgetHelper::GetNextRoutingID,
591 base::Unretained(widget_helper_.get())))); 593 base::Unretained(widget_helper_.get()))));
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 int32 route_id, 1536 int32 route_id,
1535 int32 gpu_process_host_id) { 1537 int32 gpu_process_host_id) {
1536 TRACE_EVENT0("renderer_host", 1538 TRACE_EVENT0("renderer_host",
1537 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1539 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1538 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1540 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1539 gpu_process_host_id, 1541 gpu_process_host_id,
1540 0); 1542 0);
1541 } 1543 }
1542 1544
1543 } // namespace content 1545 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/battery_status/battery_status_provider_impl.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698