| 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 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 v8::Isolate* isolate = v8::Isolate::GetCurrent(); | 262 v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
| 263 if (!isolate) | 263 if (!isolate) |
| 264 return; | 264 return; |
| 265 v8::Date::DateTimeConfigurationChangeNotification(isolate); | 265 v8::Date::DateTimeConfigurationChangeNotification(isolate); |
| 266 } | 266 } |
| 267 | 267 |
| 268 class RenderFrameSetupImpl : public mojo::InterfaceImpl<RenderFrameSetup> { | 268 class RenderFrameSetupImpl : public mojo::InterfaceImpl<RenderFrameSetup> { |
| 269 public: | 269 public: |
| 270 virtual void GetServiceProviderForFrame( | 270 virtual void GetServiceProviderForFrame( |
| 271 int32_t frame_routing_id, | 271 int32_t frame_routing_id, |
| 272 mojo::InterfaceRequest<mojo::IInterfaceProvider> request) OVERRIDE { | 272 mojo::InterfaceRequest<mojo::ServiceProvider> request) OVERRIDE { |
| 273 RenderFrameImpl* frame = RenderFrameImpl::FromRoutingID(frame_routing_id); | 273 RenderFrameImpl* frame = RenderFrameImpl::FromRoutingID(frame_routing_id); |
| 274 // We can receive a GetServiceProviderForFrame message for a frame not yet | 274 // We can receive a GetServiceProviderForFrame message for a frame not yet |
| 275 // created due to a race between the message and a ViewMsg_New IPC that | 275 // created due to a race between the message and a ViewMsg_New IPC that |
| 276 // triggers creation of the RenderFrame we want. | 276 // triggers creation of the RenderFrame we want. |
| 277 if (!frame) { | 277 if (!frame) { |
| 278 RenderThreadImpl::current()->RegisterPendingRenderFrameConnect( | 278 RenderThreadImpl::current()->RegisterPendingRenderFrameConnect( |
| 279 frame_routing_id, request.PassMessagePipe()); | 279 frame_routing_id, request.PassMessagePipe()); |
| 280 return; | 280 return; |
| 281 } | 281 } |
| 282 | 282 |
| (...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 hidden_widget_count_--; | 1565 hidden_widget_count_--; |
| 1566 | 1566 |
| 1567 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1567 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1568 return; | 1568 return; |
| 1569 } | 1569 } |
| 1570 | 1570 |
| 1571 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1571 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1572 } | 1572 } |
| 1573 | 1573 |
| 1574 } // namespace content | 1574 } // namespace content |
| OLD | NEW |