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

Unified Diff: content/public/common/child_process_host.h

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/child/child_thread.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/child_process_host.h
diff --git a/content/public/common/child_process_host.h b/content/public/common/child_process_host.h
index c79938b405f82d6c0d591730d0cf59c31c766aac..dc288719e8a63adeb7036c0a6cceba843c8b23dd 100644
--- a/content/public/common/child_process_host.h
+++ b/content/public/common/child_process_host.h
@@ -15,6 +15,7 @@ class FilePath;
}
namespace IPC {
+class AttachmentBroker;
class MessageFilter;
}
@@ -83,6 +84,13 @@ class CONTENT_EXPORT ChildProcessHost : public IPC::Sender {
// On failure, returns an empty FilePath.
static base::FilePath GetChildPath(int flags);
+ // Returns an AttachmentBroker used to broker attachments of IPC messages to
+ // child processes. This method is only useful in the embedder, and only
+ // because a particular embedder (Chrome) is bad at avoiding the use of
+ // singletons. Child processes should find a cleaner way of passing around an
+ // AttachmentBroker.
+ static IPC::AttachmentBroker* GetAttachmentBroker();
+
// Send the shutdown message to the child process.
// Does not check with the delegate's CanShutdown.
virtual void ForceShutdown() = 0;
« no previous file with comments | « content/public/child/child_thread.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698