OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_APPCACHE_APPCACHE_DISPATCHER_H_ | 5 #ifndef CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ |
6 #define CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ | 6 #define CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include "chrome/common/appcache/appcache_backend_proxy.h" | 9 #include "chrome/common/appcache/appcache_backend_proxy.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
11 #include "webkit/appcache/appcache_frontend_impl.h" | 11 #include "webkit/appcache/appcache_frontend_impl.h" |
(...skipping 12 matching lines...) Expand all Loading... |
24 bool OnMessageReceived(const IPC::Message& msg); | 24 bool OnMessageReceived(const IPC::Message& msg); |
25 | 25 |
26 private: | 26 private: |
27 // Ipc message handlers | 27 // Ipc message handlers |
28 void OnCacheSelected(int host_id, int64 cache_id, | 28 void OnCacheSelected(int host_id, int64 cache_id, |
29 appcache::Status status); | 29 appcache::Status status); |
30 void OnStatusChanged(const std::vector<int>& host_ids, | 30 void OnStatusChanged(const std::vector<int>& host_ids, |
31 appcache::Status status); | 31 appcache::Status status); |
32 void OnEventRaised(const std::vector<int>& host_ids, | 32 void OnEventRaised(const std::vector<int>& host_ids, |
33 appcache::EventID event_id); | 33 appcache::EventID event_id); |
| 34 void OnContentBlocked(int host_id); |
34 | 35 |
35 AppCacheBackendProxy backend_proxy_; | 36 AppCacheBackendProxy backend_proxy_; |
36 appcache::AppCacheFrontendImpl frontend_impl_; | 37 appcache::AppCacheFrontendImpl frontend_impl_; |
37 }; | 38 }; |
38 | 39 |
39 #endif // CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ | 40 #endif // CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ |
OLD | NEW |