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

Side by Side Diff: trunk/src/content/renderer/render_thread_impl.h

Issue 352013002: Revert 279557 "Support exposing Mojo services between render fra..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 #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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual void SetIdleNotificationDelayInMs( 159 virtual void SetIdleNotificationDelayInMs(
160 int64 idle_notification_delay_in_ms) OVERRIDE; 160 int64 idle_notification_delay_in_ms) OVERRIDE;
161 virtual void UpdateHistograms(int sequence_number) OVERRIDE; 161 virtual void UpdateHistograms(int sequence_number) OVERRIDE;
162 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE; 162 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE;
163 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; 163 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE;
164 virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE; 164 virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE;
165 #if defined(OS_WIN) 165 #if defined(OS_WIN)
166 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; 166 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
167 virtual void ReleaseCachedFonts() OVERRIDE; 167 virtual void ReleaseCachedFonts() OVERRIDE;
168 #endif 168 #endif
169 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE;
170 169
171 // Synchronously establish a channel to the GPU plugin if not previously 170 // Synchronously establish a channel to the GPU plugin if not previously
172 // established or if it has been lost (for example if the GPU plugin crashed). 171 // established or if it has been lost (for example if the GPU plugin crashed).
173 // If there is a pending asynchronous request, it will be completed by the 172 // If there is a pending asynchronous request, it will be completed by the
174 // time this routine returns. 173 // time this routine returns.
175 GpuChannelHost* EstablishGpuChannelSync(CauseForGpuLaunch); 174 GpuChannelHost* EstablishGpuChannelSync(CauseForGpuLaunch);
176 175
177 176
178 // These methods modify how the next message is sent. Normally, when sending 177 // These methods modify how the next message is sent. Normally, when sending
179 // a synchronous message that runs a nested message loop, we need to suspend 178 // a synchronous message that runs a nested message loop, we need to suspend
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // Called by a RenderWidget when it is created or destroyed. This 393 // Called by a RenderWidget when it is created or destroyed. This
395 // allows the process to know when there are no visible widgets. 394 // allows the process to know when there are no visible widgets.
396 void WidgetCreated(); 395 void WidgetCreated();
397 void WidgetDestroyed(); 396 void WidgetDestroyed();
398 void WidgetHidden(); 397 void WidgetHidden();
399 void WidgetRestored(); 398 void WidgetRestored();
400 399
401 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener); 400 void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener);
402 void RemoveEmbeddedWorkerRoute(int32 routing_id); 401 void RemoveEmbeddedWorkerRoute(int32 routing_id);
403 402
404 void RegisterPendingRenderFrameConnect(int routing_id,
405 mojo::ScopedMessagePipeHandle handle);
406
407 private: 403 private:
408 // ChildThread 404 // ChildThread
409 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 405 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
410 406
411 // GpuChannelHostFactory implementation: 407 // GpuChannelHostFactory implementation:
412 virtual bool IsMainThread() OVERRIDE; 408 virtual bool IsMainThread() OVERRIDE;
413 virtual base::MessageLoop* GetMainLoop() OVERRIDE; 409 virtual base::MessageLoop* GetMainLoop() OVERRIDE;
414 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; 410 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE;
415 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( 411 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(
416 size_t size) OVERRIDE; 412 size_t size) OVERRIDE;
417 virtual bool CreateViewCommandBuffer( 413 virtual bool CreateViewCommandBuffer(
418 int32 surface_id, 414 int32 surface_id,
419 const GPUCreateCommandBufferConfig& init_params, 415 const GPUCreateCommandBufferConfig& init_params,
420 int32 route_id) OVERRIDE; 416 int32 route_id) OVERRIDE;
421 virtual void CreateImage( 417 virtual void CreateImage(
422 gfx::PluginWindowHandle window, 418 gfx::PluginWindowHandle window,
423 int32 image_id, 419 int32 image_id,
424 const CreateImageCallback& callback) OVERRIDE; 420 const CreateImageCallback& callback) OVERRIDE;
425 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; 421 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE;
426 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 422 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
427 size_t width, 423 size_t width,
428 size_t height, 424 size_t height,
429 unsigned internalformat, 425 unsigned internalformat,
430 unsigned usage) OVERRIDE; 426 unsigned usage) OVERRIDE;
431 427
428 // mojo::ServiceProvider implementation:
429 virtual void ConnectToService(
430 const mojo::String& service_url,
431 const mojo::String& service_name,
432 mojo::ScopedMessagePipeHandle message_pipe,
433 const mojo::String& requestor_url) OVERRIDE;
434
432 void Init(); 435 void Init();
433 436
434 void OnSetZoomLevelForCurrentURL(const std::string& scheme, 437 void OnSetZoomLevelForCurrentURL(const std::string& scheme,
435 const std::string& host, 438 const std::string& host,
436 double zoom_level); 439 double zoom_level);
437 void OnCreateNewView(const ViewMsg_New_Params& params); 440 void OnCreateNewView(const ViewMsg_New_Params& params);
438 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 441 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
439 void OnPurgePluginListCache(bool reload_pages); 442 void OnPurgePluginListCache(bool reload_pages);
440 void OnNetworkTypeChanged(net::NetworkChangeNotifier::ConnectionType type); 443 void OnNetworkTypeChanged(net::NetworkChangeNotifier::ConnectionType type);
441 void OnGetAccessibilityTree(); 444 void OnGetAccessibilityTree();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // Compositor settings 573 // Compositor settings
571 bool is_gpu_rasterization_enabled_; 574 bool is_gpu_rasterization_enabled_;
572 bool is_gpu_rasterization_forced_; 575 bool is_gpu_rasterization_forced_;
573 bool is_impl_side_painting_enabled_; 576 bool is_impl_side_painting_enabled_;
574 bool is_low_res_tiling_enabled_; 577 bool is_low_res_tiling_enabled_;
575 bool is_lcd_text_enabled_; 578 bool is_lcd_text_enabled_;
576 bool is_distance_field_text_enabled_; 579 bool is_distance_field_text_enabled_;
577 bool is_zero_copy_enabled_; 580 bool is_zero_copy_enabled_;
578 bool is_one_copy_enabled_; 581 bool is_one_copy_enabled_;
579 582
580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
581
582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 583 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
583 }; 584 };
584 585
585 } // namespace content 586 } // namespace content
586 587
587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 588 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/render_frame_impl.cc ('k') | trunk/src/content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698