OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ | 5 #ifndef CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ |
6 #define CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ | 6 #define CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ |
7 | 7 |
8 #include "webkit/common/appcache/appcache_interfaces.h" | 8 #include "content/common/appcache_interfaces.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 class AppCacheFrontendImpl : public appcache::AppCacheFrontend { | 12 class AppCacheFrontendImpl : public AppCacheFrontend { |
13 public: | 13 public: |
14 virtual void OnCacheSelected(int host_id, | 14 virtual void OnCacheSelected(int host_id, |
15 const appcache::AppCacheInfo& info) OVERRIDE; | 15 const AppCacheInfo& info) OVERRIDE; |
16 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 16 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
17 appcache::AppCacheStatus status) OVERRIDE; | 17 AppCacheStatus status) OVERRIDE; |
18 virtual void OnEventRaised(const std::vector<int>& host_ids, | 18 virtual void OnEventRaised(const std::vector<int>& host_ids, |
19 appcache::AppCacheEventID event_id) OVERRIDE; | 19 AppCacheEventID event_id) OVERRIDE; |
20 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | 20 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
21 const GURL& url, | 21 const GURL& url, |
22 int num_total, | 22 int num_total, |
23 int num_complete) OVERRIDE; | 23 int num_complete) OVERRIDE; |
24 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, | 24 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, |
25 const appcache::AppCacheErrorDetails& details) | 25 const AppCacheErrorDetails& details) |
26 OVERRIDE; | 26 OVERRIDE; |
27 virtual void OnLogMessage(int host_id, | 27 virtual void OnLogMessage(int host_id, |
28 appcache::AppCacheLogLevel log_level, | 28 AppCacheLogLevel log_level, |
29 const std::string& message) OVERRIDE; | 29 const std::string& message) OVERRIDE; |
30 virtual void OnContentBlocked(int host_id, const GURL& manifest_url) OVERRIDE; | 30 virtual void OnContentBlocked(int host_id, const GURL& manifest_url) OVERRIDE; |
31 }; | 31 }; |
32 | 32 |
33 } // namespace content | 33 } // namespace content |
34 | 34 |
35 #endif // CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ | 35 #endif // CONTENT_CHILD_APPCACHE_APPCACHE_FRONTEND_IMPL_H_ |
OLD | NEW |