diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:16:56 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:16:56 +0000 |
commit | bfd04a62ce610d7bb61dbb78811dccbed23589b7 (patch) | |
tree | 70bb228c0f00ba1c12c584efd569daccf96b4026 /chrome/common/net | |
parent | a814d863440f0a154a7299f2d8b440f405c7700e (diff) | |
download | chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.zip chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.gz chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.bz2 |
Remove most header file dependencies on the notification type list. It is
really painful to add more types, since lots of headers include the
notification service to derive from the notification observer. This splits that
out, so much less of the project should end up including notification_types.h
---Paths modified but not in any changelist:
Review URL: http://codereview.chromium.org/19744
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net')
-rw-r--r-- | chrome/common/net/url_request_intercept_job.cc | 7 | ||||
-rw-r--r-- | chrome/common/net/url_request_intercept_job.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/chrome/common/net/url_request_intercept_job.cc b/chrome/common/net/url_request_intercept_job.cc index 01f4e29..08da43a 100644 --- a/chrome/common/net/url_request_intercept_job.cc +++ b/chrome/common/net/url_request_intercept_job.cc @@ -11,6 +11,7 @@ #include "base/message_loop.h" #include "base/string_util.h" #include "chrome/common/chrome_plugin_lib.h" +#include "chrome/common/notification_service.h" #include "net/base/net_errors.h" using base::Time; @@ -31,7 +32,7 @@ URLRequestInterceptJob::URLRequestInterceptJob(URLRequest* request, cprequest_->data = this; // see FromCPRequest(). NotificationService::current()->AddObserver( - this, NOTIFY_CHROME_PLUGIN_UNLOADED, + this, NotificationType::CHROME_PLUGIN_UNLOADED, Source<ChromePluginLib>(plugin_)); } @@ -45,7 +46,7 @@ URLRequestInterceptJob::~URLRequestInterceptJob() { void URLRequestInterceptJob::DetachPlugin() { NotificationService::current()->RemoveObserver( - this, NOTIFY_CHROME_PLUGIN_UNLOADED, + this, NotificationType::CHROME_PLUGIN_UNLOADED, Source<ChromePluginLib>(plugin_)); plugin_ = NULL; } @@ -205,7 +206,7 @@ void URLRequestInterceptJob::OnReadCompleted(int bytes_read) { void URLRequestInterceptJob::Observe(NotificationType type, const NotificationSource& source, const NotificationDetails& details) { - DCHECK(type == NOTIFY_CHROME_PLUGIN_UNLOADED); + DCHECK(type == NotificationType::CHROME_PLUGIN_UNLOADED); DCHECK(plugin_ == Source<ChromePluginLib>(source).ptr()); DetachPlugin(); diff --git a/chrome/common/net/url_request_intercept_job.h b/chrome/common/net/url_request_intercept_job.h index 1537281..794a418 100644 --- a/chrome/common/net/url_request_intercept_job.h +++ b/chrome/common/net/url_request_intercept_job.h @@ -11,7 +11,7 @@ #include "chrome/browser/chrome_plugin_host.h" #include "chrome/common/chrome_plugin_api.h" #include "chrome/common/chrome_plugin_util.h" -#include "chrome/common/notification_service.h" +#include "chrome/common/notification_observer.h" class ChromePluginLib; |