diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 20:03:24 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 20:03:24 +0000 |
commit | 6541227a9c1aa7a492dd1b671ef9bca26236b8e7 (patch) | |
tree | 8fe17eb6198b90237e117a809b3c9f55318973a2 /chrome/common | |
parent | 523d40835e4524c5e2ee2d4b8cfe1d7ca765f686 (diff) | |
download | chromium_src-6541227a9c1aa7a492dd1b671ef9bca26236b8e7.zip chromium_src-6541227a9c1aa7a492dd1b671ef9bca26236b8e7.tar.gz chromium_src-6541227a9c1aa7a492dd1b671ef9bca26236b8e7.tar.bz2 |
Create a message filter for message port and worker messages. This allows a nice cleanup of getting rid of the notifications when RenderMessageFilter and WorkerProcessHost go away. SafeBrowsingResourceHandler doesn't need it anymore as well, since it now overrides OnRequestClosed() which does the same thing.
Review URL: http://codereview.chromium.org/6055002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69862 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/notification_type.h | 10 | ||||
-rw-r--r-- | chrome/common/worker_messages_internal.h | 13 |
2 files changed, 7 insertions, 16 deletions
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index 8564063..d27f2f8 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -183,16 +183,6 @@ class NotificationType { // change. There are no details. SSL_INTERNAL_STATE_CHANGED, - // Lets resource handlers and other interested observers know when the - // message filter is being deleted and can no longer be used. This will - // also get sent if the renderer crashes (and in that case, it'll be sent - // twice). - RESOURCE_MESSAGE_FILTER_SHUTDOWN, - - // Lets interested observers know when a WorkerProcessHost is being deleted - // and can no longer be used. - WORKER_PROCESS_HOST_SHUTDOWN, - // Views ------------------------------------------------------------------- // Notification that a view was removed from a view hierarchy. The source diff --git a/chrome/common/worker_messages_internal.h b/chrome/common/worker_messages_internal.h index d1ef439..e661f67 100644 --- a/chrome/common/worker_messages_internal.h +++ b/chrome/common/worker_messages_internal.h @@ -76,12 +76,13 @@ IPC_MESSAGE_CONTROL2(WorkerProcessHostMsg_SendQueuedMessages, // Sent by the worker process to check whether access to web databases is // granted by content settings. -IPC_SYNC_MESSAGE_ROUTED4_1(WorkerProcessHostMsg_AllowDatabase, - GURL /* origin url */, - string16 /* database name */, - string16 /* database display name */, - unsigned long /* estimated size */, - bool /* result */) +IPC_SYNC_MESSAGE_CONTROL5_1(WorkerProcessHostMsg_AllowDatabase, + int /* worker_route_id */, + GURL /* origin url */, + string16 /* database name */, + string16 /* database display name */, + unsigned long /* estimated size */, + bool /* result */) //----------------------------------------------------------------------------- // Worker messages |