| 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_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_APPCACHE_APPCACHE_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_APPCACHE_APPCACHE_DISPATCHER_H_ | 6 #define CONTENT_CHILD_APPCACHE_APPCACHE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 private: | 33 private: |
| 34 // Ipc message handlers | 34 // Ipc message handlers |
| 35 void OnCacheSelected(int host_id, const appcache::AppCacheInfo& info); | 35 void OnCacheSelected(int host_id, const appcache::AppCacheInfo& info); |
| 36 void OnStatusChanged(const std::vector<int>& host_ids, | 36 void OnStatusChanged(const std::vector<int>& host_ids, |
| 37 appcache::Status status); | 37 appcache::Status status); |
| 38 void OnEventRaised(const std::vector<int>& host_ids, | 38 void OnEventRaised(const std::vector<int>& host_ids, |
| 39 appcache::EventID event_id); | 39 appcache::EventID event_id); |
| 40 void OnProgressEventRaised(const std::vector<int>& host_ids, | 40 void OnProgressEventRaised(const std::vector<int>& host_ids, |
| 41 const GURL& url, int num_total, int num_complete); | 41 const GURL& url, int num_total, int num_complete); |
| 42 void OnErrorEventRaised(const std::vector<int>& host_ids, | 42 void OnErrorEventRaised(const std::vector<int>& host_ids, |
| 43 const std::string& message); | 43 const std::string& message, |
| 44 const std::string& reason, |
| 45 const GURL& url, |
| 46 int status); |
| 44 void OnLogMessage(int host_id, int log_level, const std::string& message); | 47 void OnLogMessage(int host_id, int log_level, const std::string& message); |
| 45 void OnContentBlocked(int host_id, const GURL& manifest_url); | 48 void OnContentBlocked(int host_id, const GURL& manifest_url); |
| 46 | 49 |
| 47 AppCacheBackendProxy backend_proxy_; | 50 AppCacheBackendProxy backend_proxy_; |
| 48 scoped_ptr<appcache::AppCacheFrontend> frontend_; | 51 scoped_ptr<appcache::AppCacheFrontend> frontend_; |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace content | 54 } // namespace content |
| 52 | 55 |
| 53 #endif // CONTENT_CHILD_APPCACHE_APPCACHE_DISPATCHER_H_ | 56 #endif // CONTENT_CHILD_APPCACHE_APPCACHE_DISPATCHER_H_ |
| OLD | NEW |