OLD | NEW |
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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 896 |
897 void RenderProcessHostImpl::NotifyTimezoneChange() { | 897 void RenderProcessHostImpl::NotifyTimezoneChange() { |
898 Send(new ViewMsg_TimezoneChange()); | 898 Send(new ViewMsg_TimezoneChange()); |
899 } | 899 } |
900 | 900 |
901 ServiceRegistry* RenderProcessHostImpl::GetServiceRegistry() { | 901 ServiceRegistry* RenderProcessHostImpl::GetServiceRegistry() { |
902 DCHECK(mojo_application_host_); | 902 DCHECK(mojo_application_host_); |
903 return mojo_application_host_->service_registry(); | 903 return mojo_application_host_->service_registry(); |
904 } | 904 } |
905 | 905 |
| 906 const base::TimeTicks& RenderProcessHostImpl::init_time() const { |
| 907 return init_time_; |
| 908 } |
| 909 |
906 void RenderProcessHostImpl::AddRoute( | 910 void RenderProcessHostImpl::AddRoute( |
907 int32 routing_id, | 911 int32 routing_id, |
908 IPC::Listener* listener) { | 912 IPC::Listener* listener) { |
909 CHECK(widget_helper_->IsRoutingIDProbablyValid(routing_id)) | 913 CHECK(widget_helper_->IsRoutingIDProbablyValid(routing_id)) |
910 << "Found Invalid Routing ID: " << routing_id; | 914 << "Found Invalid Routing ID: " << routing_id; |
911 CHECK(!listeners_.Lookup(routing_id)) | 915 CHECK(!listeners_.Lookup(routing_id)) |
912 << "Found Routing ID Conflict: " << routing_id; | 916 << "Found Routing ID Conflict: " << routing_id; |
913 listeners_.AddWithID(listener, routing_id); | 917 listeners_.AddWithID(listener, routing_id); |
914 } | 918 } |
915 | 919 |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2234 | 2238 |
2235 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2239 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2236 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2240 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2237 DCHECK_GT(worker_ref_count_, 0); | 2241 DCHECK_GT(worker_ref_count_, 0); |
2238 --worker_ref_count_; | 2242 --worker_ref_count_; |
2239 if (worker_ref_count_ == 0) | 2243 if (worker_ref_count_ == 0) |
2240 Cleanup(); | 2244 Cleanup(); |
2241 } | 2245 } |
2242 | 2246 |
2243 } // namespace content | 2247 } // namespace content |
OLD | NEW |