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