| 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 16 matching lines...) Expand all Loading... |
| 27 static const int64 kNoCacheId = 0; | 27 static const int64 kNoCacheId = 0; |
| 28 static const int64 kNoResponseId = 0; | 28 static const int64 kNoResponseId = 0; |
| 29 static const int64 kUnknownCacheId = -1; | 29 static const int64 kUnknownCacheId = -1; |
| 30 | 30 |
| 31 enum Status { | 31 enum Status { |
| 32 UNCACHED, | 32 UNCACHED, |
| 33 IDLE, | 33 IDLE, |
| 34 CHECKING, | 34 CHECKING, |
| 35 DOWNLOADING, | 35 DOWNLOADING, |
| 36 UPDATE_READY, | 36 UPDATE_READY, |
| 37 OBSOLETE | 37 OBSOLETE, |
| 38 STATUS_LAST = OBSOLETE |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 enum EventID { | 41 enum EventID { |
| 41 CHECKING_EVENT, | 42 CHECKING_EVENT, |
| 42 ERROR_EVENT, | 43 ERROR_EVENT, |
| 43 NO_UPDATE_EVENT, | 44 NO_UPDATE_EVENT, |
| 44 DOWNLOADING_EVENT, | 45 DOWNLOADING_EVENT, |
| 45 PROGRESS_EVENT, | 46 PROGRESS_EVENT, |
| 46 UPDATE_READY_EVENT, | 47 UPDATE_READY_EVENT, |
| 47 CACHED_EVENT, | 48 CACHED_EVENT, |
| 48 OBSOLETE_EVENT | 49 OBSOLETE_EVENT, |
| 50 EVENT_ID_LAST = OBSOLETE_EVENT |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 // Temporarily renumber them in wierd way, to help remove LOG_TIP from WebKit | 53 // Temporarily renumber them in wierd way, to help remove LOG_TIP from WebKit |
| 52 enum LogLevel { | 54 enum LogLevel { |
| 53 LOG_DEBUG = 4, | 55 LOG_DEBUG = 4, |
| 54 LOG_INFO = 1, | 56 LOG_INFO = 1, |
| 55 LOG_WARNING = 2, | 57 LOG_WARNING = 2, |
| 56 LOG_ERROR = 3, | 58 LOG_ERROR = 3, |
| 57 }; | 59 }; |
| 58 | 60 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); | 184 WEBKIT_STORAGE_COMMON_EXPORT bool IsMethodSupported(const std::string& method); |
| 183 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( | 185 WEBKIT_STORAGE_COMMON_EXPORT bool IsSchemeAndMethodSupported( |
| 184 const net::URLRequest* request); | 186 const net::URLRequest* request); |
| 185 | 187 |
| 186 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType | 188 WEBKIT_STORAGE_COMMON_EXPORT extern const base::FilePath::CharType |
| 187 kAppCacheDatabaseName[]; | 189 kAppCacheDatabaseName[]; |
| 188 | 190 |
| 189 } // namespace | 191 } // namespace |
| 190 | 192 |
| 191 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ | 193 #endif // WEBKIT_COMMON_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |