OLD | NEW |
1 // Copyright (c) 2010 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" |
(...skipping 15 matching lines...) Expand all Loading... |
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 OnProgressEventRaised(const std::vector<int>& host_ids, | 34 void OnProgressEventRaised(const std::vector<int>& host_ids, |
35 const GURL& url, int num_total, int num_complete); | 35 const GURL& url, int num_total, int num_complete); |
| 36 void OnErrorEventRaised(const std::vector<int>& host_ids, |
| 37 const std::string& message); |
36 void OnLogMessage(int host_id, int log_level, const std::string& message); | 38 void OnLogMessage(int host_id, int log_level, const std::string& message); |
37 void OnContentBlocked(int host_id, | 39 void OnContentBlocked(int host_id, |
38 const GURL& manifest_url); | 40 const GURL& manifest_url); |
39 | 41 |
40 AppCacheBackendProxy backend_proxy_; | 42 AppCacheBackendProxy backend_proxy_; |
41 appcache::AppCacheFrontendImpl frontend_impl_; | 43 appcache::AppCacheFrontendImpl frontend_impl_; |
42 }; | 44 }; |
43 | 45 |
44 #endif // CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ | 46 #endif // CHROME_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ |
OLD | NEW |