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

Unified Diff: content/public/browser/browser_child_process_observer.cc

Issue 12212089: content: convert child process notifications to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: private Created 7 years, 10 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
Index: content/public/browser/browser_child_process_observer.cc
diff --git a/content/public/browser/browser_child_process_observer.cc b/content/public/browser/browser_child_process_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9f0be9ba08f167b4936a7b9f7e5df3e39ef8fcfd
--- /dev/null
+++ b/content/public/browser/browser_child_process_observer.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/browser_child_process_observer.h"
+
+#include "content/browser/browser_child_process_host_impl.h"
+
+namespace content {
+
+// static
+void BrowserChildProcessObserver::Add(BrowserChildProcessObserver* observer) {
+ BrowserChildProcessHostImpl::AddObserver(observer);
+}
+
+// static
+void BrowserChildProcessObserver::Remove(
+ BrowserChildProcessObserver* observer) {
+ BrowserChildProcessHostImpl::RemoveObserver(observer);
+}
+
+} // namespace content
« no previous file with comments | « content/public/browser/browser_child_process_observer.h ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698