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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2387113004: Better bad message reporting from IO thread (Closed)
Patch Set: cleanup Created 4 years, 2 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
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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ~RenderProcessHostImpl() override; 114 ~RenderProcessHostImpl() override;
115 115
116 // RenderProcessHost implementation (public portion). 116 // RenderProcessHost implementation (public portion).
117 void EnableSendQueue() override; 117 void EnableSendQueue() override;
118 bool Init() override; 118 bool Init() override;
119 int GetNextRoutingID() override; 119 int GetNextRoutingID() override;
120 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; 120 void AddRoute(int32_t routing_id, IPC::Listener* listener) override;
121 void RemoveRoute(int32_t routing_id) override; 121 void RemoveRoute(int32_t routing_id) override;
122 void AddObserver(RenderProcessHostObserver* observer) override; 122 void AddObserver(RenderProcessHostObserver* observer) override;
123 void RemoveObserver(RenderProcessHostObserver* observer) override; 123 void RemoveObserver(RenderProcessHostObserver* observer) override;
124 void ShutdownForBadMessage() override; 124 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override;
125 void WidgetRestored() override; 125 void WidgetRestored() override;
126 void WidgetHidden() override; 126 void WidgetHidden() override;
127 int VisibleWidgetCount() const override; 127 int VisibleWidgetCount() const override;
128 void AudioStateChanged() override; 128 void AudioStateChanged() override;
129 bool IsForGuestsOnly() const override; 129 bool IsForGuestsOnly() const override;
130 StoragePartition* GetStoragePartition() const override; 130 StoragePartition* GetStoragePartition() const override;
131 bool Shutdown(int exit_code, bool wait) override; 131 bool Shutdown(int exit_code, bool wait) override;
132 bool FastShutdownIfPossible() override; 132 bool FastShutdownIfPossible() override;
133 base::ProcessHandle GetHandle() const override; 133 base::ProcessHandle GetHandle() const override;
134 bool IsReady() const override; 134 bool IsReady() const override;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void RegisterAecDumpConsumerOnUIThread(int id); 371 void RegisterAecDumpConsumerOnUIThread(int id);
372 void UnregisterAecDumpConsumerOnUIThread(int id); 372 void UnregisterAecDumpConsumerOnUIThread(int id);
373 void EnableAecDumpForId(const base::FilePath& file, int id); 373 void EnableAecDumpForId(const base::FilePath& file, int id);
374 // Sends |file_for_transit| to the render process. 374 // Sends |file_for_transit| to the render process.
375 void SendAecDumpFileToRenderer(int id, 375 void SendAecDumpFileToRenderer(int id,
376 IPC::PlatformFileForTransit file_for_transit); 376 IPC::PlatformFileForTransit file_for_transit);
377 void SendDisableAecDumpToRenderer(); 377 void SendDisableAecDumpToRenderer();
378 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); 378 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
379 #endif 379 #endif
380 380
381 static void OnMojoError( 381 static void OnMojoError(int render_process_id, const std::string& error);
382 base::WeakPtr<RenderProcessHostImpl> process,
383 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
384 const std::string& error);
385 382
386 template <typename InterfaceType> 383 template <typename InterfaceType>
387 using AddInterfaceCallback = 384 using AddInterfaceCallback =
388 base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>; 385 base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>;
389 386
390 template <typename CallbackType> 387 template <typename CallbackType>
391 struct InterfaceGetter; 388 struct InterfaceGetter;
392 389
393 template <typename InterfaceType> 390 template <typename InterfaceType>
394 struct InterfaceGetter<AddInterfaceCallback<InterfaceType>> { 391 struct InterfaceGetter<AddInterfaceCallback<InterfaceType>> {
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 instance_weak_factory_; 580 instance_weak_factory_;
584 581
585 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 582 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
586 583
587 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 584 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
588 }; 585 };
589 586
590 } // namespace content 587 } // namespace content
591 588
592 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 589 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698