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

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

Issue 1942273002: Crash on channel error in single-process mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 protected: 452 protected:
453 RenderThreadImpl( 453 RenderThreadImpl(
454 const InProcessChildThreadParams& params, 454 const InProcessChildThreadParams& params,
455 std::unique_ptr<scheduler::RendererScheduler> scheduler, 455 std::unique_ptr<scheduler::RendererScheduler> scheduler,
456 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 456 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
457 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop, 457 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop,
458 std::unique_ptr<scheduler::RendererScheduler> scheduler); 458 std::unique_ptr<scheduler::RendererScheduler> scheduler);
459 459
460 private: 460 private:
461 // IPC::Listener
462 void OnChannelError() override;
463
461 // ChildThread 464 // ChildThread
462 bool OnControlMessageReceived(const IPC::Message& msg) override; 465 bool OnControlMessageReceived(const IPC::Message& msg) override;
463 void OnProcessBackgrounded(bool backgrounded) override; 466 void OnProcessBackgrounded(bool backgrounded) override;
464 void RecordAction(const base::UserMetricsAction& action) override; 467 void RecordAction(const base::UserMetricsAction& action) override;
465 void RecordComputedAction(const std::string& action) override; 468 void RecordComputedAction(const std::string& action) override;
466 469
467 // GpuChannelHostFactory implementation: 470 // GpuChannelHostFactory implementation:
468 bool IsMainThread() override; 471 bool IsMainThread() override;
469 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 472 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
470 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 473 std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 706 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
704 }; 707 };
705 708
706 #if defined(COMPILER_MSVC) 709 #if defined(COMPILER_MSVC)
707 #pragma warning(pop) 710 #pragma warning(pop)
708 #endif 711 #endif
709 712
710 } // namespace content 713 } // namespace content
711 714
712 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 715 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698