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 WEBKIT_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ |
6 #define WEBKIT_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include "webkit/appcache/appcache_interfaces.h" | 9 #include "webkit/appcache/appcache_interfaces.h" |
10 | 10 |
11 namespace appcache { | 11 namespace appcache { |
12 | 12 |
13 class AppCacheFrontendImpl : public AppCacheFrontend { | 13 class AppCacheFrontendImpl : public AppCacheFrontend { |
14 public: | 14 public: |
15 virtual void OnCacheSelected(int host_id, int64 cache_id, | 15 virtual void OnCacheSelected(int host_id, int64 cache_id, |
16 Status status); | 16 Status status); |
17 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 17 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
18 Status status); | 18 Status status); |
19 virtual void OnEventRaised(const std::vector<int>& host_ids, | 19 virtual void OnEventRaised(const std::vector<int>& host_ids, |
20 EventID event_id); | 20 EventID event_id); |
21 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | 21 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
22 const GURL& url, | 22 const GURL& url, |
23 int num_total, int num_complete); | 23 int num_total, int num_complete); |
| 24 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, |
| 25 const std::string& message); |
24 virtual void OnLogMessage(int host_id, LogLevel log_level, | 26 virtual void OnLogMessage(int host_id, LogLevel log_level, |
25 const std::string& message); | 27 const std::string& message); |
26 virtual void OnContentBlocked(int host_id, const GURL& manifest_url); | 28 virtual void OnContentBlocked(int host_id, const GURL& manifest_url); |
27 }; | 29 }; |
28 | 30 |
29 } // namespace | 31 } // namespace |
30 | 32 |
31 #endif // WEBKIT_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ | 33 #endif // WEBKIT_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ |
OLD | NEW |