OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_HOST_H_ | 5 #ifndef CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_HOST_H_ |
6 #define CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_HOST_H_ | 6 #define CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include "base/id_map.h" | 8 #include "chrome/common/id_map.h" |
9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
10 #include "webkit/glue/webappcachecontext.h" | 10 #include "webkit/glue/webappcachecontext.h" |
11 | 11 |
12 class GURL; | 12 class GURL; |
13 | 13 |
14 // Handles app cache related messages sent to the main browser process from | 14 // Handles app cache related messages sent to the main browser process from |
15 // its child processes. There is a distinct host for each child process. | 15 // its child processes. There is a distinct host for each child process. |
16 // Messages are handled on the IO thread. The ResourceMessageFilter creates | 16 // Messages are handled on the IO thread. The ResourceMessageFilter creates |
17 // an instance and delegates calls to it. | 17 // an instance and delegates calls to it. |
18 class AppCacheDispatcherHost { | 18 class AppCacheDispatcherHost { |
(...skipping 15 matching lines...) Expand all Loading... |
34 const GURL& opt_manifest_url); | 34 const GURL& opt_manifest_url); |
35 | 35 |
36 bool Send(IPC::Message* msg) { | 36 bool Send(IPC::Message* msg) { |
37 return sender_->Send(msg); | 37 return sender_->Send(msg); |
38 } | 38 } |
39 | 39 |
40 IPC::Message::Sender* sender_; | 40 IPC::Message::Sender* sender_; |
41 }; | 41 }; |
42 | 42 |
43 #endif // CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_HOST_H_ | 43 #endif // CHROME_COMMON_APP_CACHE_APP_CACHE_DISPATCHER_HOST_H_ |
OLD | NEW |