| 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_INTERFACES_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 public: | 56 public: |
| 57 virtual void OnCacheSelected(int host_id, int64 cache_id , | 57 virtual void OnCacheSelected(int host_id, int64 cache_id , |
| 58 Status status) = 0; | 58 Status status) = 0; |
| 59 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 59 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
| 60 Status status) = 0; | 60 Status status) = 0; |
| 61 virtual void OnEventRaised(const std::vector<int>& host_ids, | 61 virtual void OnEventRaised(const std::vector<int>& host_ids, |
| 62 EventID event_id) = 0; | 62 EventID event_id) = 0; |
| 63 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | 63 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
| 64 const GURL& url, | 64 const GURL& url, |
| 65 int num_total, int num_complete) = 0; | 65 int num_total, int num_complete) = 0; |
| 66 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, |
| 67 const std::string& message) = 0; |
| 66 virtual void OnContentBlocked(int host_id, | 68 virtual void OnContentBlocked(int host_id, |
| 67 const GURL& manifest_url) = 0; | 69 const GURL& manifest_url) = 0; |
| 68 virtual void OnLogMessage(int host_id, LogLevel log_level, | 70 virtual void OnLogMessage(int host_id, LogLevel log_level, |
| 69 const std::string& message) = 0; | 71 const std::string& message) = 0; |
| 70 virtual ~AppCacheFrontend() {} | 72 virtual ~AppCacheFrontend() {} |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 // Interface used by frontend (renderer) to talk to backend (browser-process). | 75 // Interface used by frontend (renderer) to talk to backend (browser-process). |
| 74 class AppCacheBackend { | 76 class AppCacheBackend { |
| 75 public: | 77 public: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 106 | 108 |
| 107 bool IsSchemeSupported(const GURL& url); | 109 bool IsSchemeSupported(const GURL& url); |
| 108 bool IsMethodSupported(const std::string& method); | 110 bool IsMethodSupported(const std::string& method); |
| 109 bool IsSchemeAndMethodSupported(const URLRequest* request); | 111 bool IsSchemeAndMethodSupported(const URLRequest* request); |
| 110 | 112 |
| 111 extern const FilePath::CharType kAppCacheDatabaseName[]; | 113 extern const FilePath::CharType kAppCacheDatabaseName[]; |
| 112 | 114 |
| 113 } // namespace | 115 } // namespace |
| 114 | 116 |
| 115 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 117 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |