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

Unified Diff: content/shell/shell_content_browser_client.h

Issue 13818008: [content shell] only send the hyphenation file after the process was created (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698