Index: content/shell/shell_content_browser_client.h |
diff --git a/content/shell/shell_content_browser_client.h b/content/shell/shell_content_browser_client.h |
index edd54745aa0a54890e50d840f2264ca9b725ff9b..44431b9490e4d516189fa2b17eddcd9d5e78f363 100644 |
--- a/content/shell/shell_content_browser_client.h |
+++ b/content/shell/shell_content_browser_client.h |
@@ -12,6 +12,8 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/platform_file.h" |
#include "content/public/browser/content_browser_client.h" |
+#include "content/public/browser/notification_observer.h" |
+#include "content/public/browser/notification_registrar.h" |
namespace content { |
@@ -19,7 +21,8 @@ class ShellBrowserContext; |
class ShellBrowserMainParts; |
class ShellResourceDispatcherHostDelegate; |
-class ShellContentBrowserClient : public ContentBrowserClient { |
+class ShellContentBrowserClient : public ContentBrowserClient, |
+ public NotificationObserver { |
public: |
// Gets the current instance. |
static ShellContentBrowserClient* Get(); |
@@ -60,6 +63,11 @@ class ShellContentBrowserClient : public ContentBrowserClient { |
std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
#endif |
+ // NotificationObserver implementation. |
+ virtual void Observe(int type, |
+ const NotificationSource& source, |
+ const NotificationDetails& details) OVERRIDE; |
+ |
ShellBrowserContext* browser_context(); |
ShellBrowserContext* off_the_record_browser_context(); |
ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { |
@@ -81,6 +89,8 @@ class ShellContentBrowserClient : public ContentBrowserClient { |
base::PlatformFile hyphen_dictionary_file_; |
ShellBrowserMainParts* shell_browser_main_parts_; |
+ |
+ NotificationRegistrar registrar_; |
}; |
} // namespace content |