| 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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 // WidgetRestored is called before WidgetDestroyed for any hidden widget. | 439 // WidgetRestored is called before WidgetDestroyed for any hidden widget. |
| 440 void WidgetDestroyed(); | 440 void WidgetDestroyed(); |
| 441 void WidgetHidden(); | 441 void WidgetHidden(); |
| 442 void WidgetRestored(); | 442 void WidgetRestored(); |
| 443 | 443 |
| 444 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); | 444 void AddEmbeddedWorkerRoute(int32_t routing_id, IPC::Listener* listener); |
| 445 void RemoveEmbeddedWorkerRoute(int32_t routing_id); | 445 void RemoveEmbeddedWorkerRoute(int32_t routing_id); |
| 446 | 446 |
| 447 void RegisterPendingRenderFrameConnect( | 447 void RegisterPendingRenderFrameConnect( |
| 448 int routing_id, | 448 int routing_id, |
| 449 mojo::InterfaceRequest<mojo::InterfaceProvider> services, | 449 mojo::shell::mojom::InterfaceProviderRequest services, |
| 450 mojo::InterfaceProviderPtr exposed_services); | 450 mojo::shell::mojom::InterfaceProviderPtr exposed_services); |
| 451 | 451 |
| 452 protected: | 452 protected: |
| 453 RenderThreadImpl(const InProcessChildThreadParams& params, | 453 RenderThreadImpl(const InProcessChildThreadParams& params, |
| 454 scoped_ptr<scheduler::RendererScheduler> scheduler); | 454 scoped_ptr<scheduler::RendererScheduler> scheduler); |
| 455 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, | 455 RenderThreadImpl(scoped_ptr<base::MessageLoop> main_message_loop, |
| 456 scoped_ptr<scheduler::RendererScheduler> scheduler); | 456 scoped_ptr<scheduler::RendererScheduler> scheduler); |
| 457 virtual void SetResourceDispatchTaskQueue( | 457 virtual void SetResourceDispatchTaskQueue( |
| 458 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); | 458 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
| 459 | 459 |
| 460 private: | 460 private: |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 std::vector<unsigned> use_image_texture_targets_; | 662 std::vector<unsigned> use_image_texture_targets_; |
| 663 std::vector<unsigned> use_video_frame_image_texture_targets_; | 663 std::vector<unsigned> use_video_frame_image_texture_targets_; |
| 664 bool are_image_decode_tasks_enabled_; | 664 bool are_image_decode_tasks_enabled_; |
| 665 bool is_threaded_animation_enabled_; | 665 bool is_threaded_animation_enabled_; |
| 666 | 666 |
| 667 class PendingRenderFrameConnect | 667 class PendingRenderFrameConnect |
| 668 : public base::RefCounted<PendingRenderFrameConnect> { | 668 : public base::RefCounted<PendingRenderFrameConnect> { |
| 669 public: | 669 public: |
| 670 PendingRenderFrameConnect( | 670 PendingRenderFrameConnect( |
| 671 int routing_id, | 671 int routing_id, |
| 672 mojo::InterfaceRequest<mojo::InterfaceProvider> services, | 672 mojo::shell::mojom::InterfaceProviderRequest services, |
| 673 mojo::InterfaceProviderPtr exposed_services); | 673 mojo::shell::mojom::InterfaceProviderPtr exposed_services); |
| 674 | 674 |
| 675 mojo::InterfaceRequest<mojo::InterfaceProvider>& services() { | 675 mojo::shell::mojom::InterfaceProviderRequest& services() { |
| 676 return services_; | 676 return services_; |
| 677 } | 677 } |
| 678 | 678 |
| 679 mojo::InterfaceProviderPtr& exposed_services() { return exposed_services_; } | 679 mojo::shell::mojom::InterfaceProviderPtr& exposed_services() { |
| 680 return exposed_services_; |
| 681 } |
| 680 | 682 |
| 681 private: | 683 private: |
| 682 friend class base::RefCounted<PendingRenderFrameConnect>; | 684 friend class base::RefCounted<PendingRenderFrameConnect>; |
| 683 | 685 |
| 684 ~PendingRenderFrameConnect(); | 686 ~PendingRenderFrameConnect(); |
| 685 | 687 |
| 686 // Mojo error handler. | 688 // Mojo error handler. |
| 687 void OnConnectionError(); | 689 void OnConnectionError(); |
| 688 | 690 |
| 689 int routing_id_; | 691 int routing_id_; |
| 690 mojo::InterfaceRequest<mojo::InterfaceProvider> services_; | 692 mojo::shell::mojom::InterfaceProviderRequest services_; |
| 691 mojo::InterfaceProviderPtr exposed_services_; | 693 mojo::shell::mojom::InterfaceProviderPtr exposed_services_; |
| 692 }; | 694 }; |
| 693 | 695 |
| 694 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>> | 696 typedef std::map<int, scoped_refptr<PendingRenderFrameConnect>> |
| 695 PendingRenderFrameConnectMap; | 697 PendingRenderFrameConnectMap; |
| 696 PendingRenderFrameConnectMap pending_render_frame_connects_; | 698 PendingRenderFrameConnectMap pending_render_frame_connects_; |
| 697 | 699 |
| 698 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 700 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 699 }; | 701 }; |
| 700 | 702 |
| 701 #if defined(COMPILER_MSVC) | 703 #if defined(COMPILER_MSVC) |
| 702 #pragma warning(pop) | 704 #pragma warning(pop) |
| 703 #endif | 705 #endif |
| 704 | 706 |
| 705 } // namespace content | 707 } // namespace content |
| 706 | 708 |
| 707 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 709 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |