| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 5 #ifndef WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
| 6 #define WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 6 #define WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void OnCacheSelected( | 124 virtual void OnCacheSelected( |
| 125 int host_id, const appcache::AppCacheInfo& info) = 0; | 125 int host_id, const appcache::AppCacheInfo& info) = 0; |
| 126 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 126 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
| 127 Status status) = 0; | 127 Status status) = 0; |
| 128 virtual void OnEventRaised(const std::vector<int>& host_ids, | 128 virtual void OnEventRaised(const std::vector<int>& host_ids, |
| 129 EventID event_id) = 0; | 129 EventID event_id) = 0; |
| 130 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | 130 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
| 131 const GURL& url, | 131 const GURL& url, |
| 132 int num_total, int num_complete) = 0; | 132 int num_total, int num_complete) = 0; |
| 133 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, | 133 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, |
| 134 const std::string& message) = 0; | 134 const std::string& message, |
| 135 const std::string& reason, |
| 136 const GURL& url, |
| 137 int status) = 0; |
| 135 virtual void OnContentBlocked(int host_id, | 138 virtual void OnContentBlocked(int host_id, |
| 136 const GURL& manifest_url) = 0; | 139 const GURL& manifest_url) = 0; |
| 137 virtual void OnLogMessage(int host_id, LogLevel log_level, | 140 virtual void OnLogMessage(int host_id, LogLevel log_level, |
| 138 const std::string& message) = 0; | 141 const std::string& message) = 0; |
| 139 virtual ~AppCacheFrontend() {} | 142 virtual ~AppCacheFrontend() {} |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 // Interface used by frontend (renderer) to talk to backend (browser-process). | 145 // Interface used by frontend (renderer) to talk to backend (browser-process). |
| 143 class WEBKIT_STORAGE_COMMON_EXPORT AppCacheBackend { | 146 class WEBKIT_STORAGE_COMMON_EXPORT AppCacheBackend { |
| 144 public: | 147 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); | 187 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); |
| 185 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( | 188 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( |
| 186 const net::URLRequest* request); | 189 const net::URLRequest* request); |
| 187 | 190 |
| 188 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType | 191 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType |
| 189 kAppCacheDatabaseName[]; | 192 kAppCacheDatabaseName[]; |
| 190 | 193 |
| 191 } // namespace | 194 } // namespace |
| 192 | 195 |
| 193 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 196 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |