| 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_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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 AppCacheResourceInfo(); | 75 AppCacheResourceInfo(); |
| 76 ~AppCacheResourceInfo(); | 76 ~AppCacheResourceInfo(); |
| 77 | 77 |
| 78 GURL url; | 78 GURL url; |
| 79 int64 size; | 79 int64 size; |
| 80 bool is_master; | 80 bool is_master; |
| 81 bool is_manifest; | 81 bool is_manifest; |
| 82 bool is_fallback; | 82 bool is_fallback; |
| 83 bool is_foreign; | 83 bool is_foreign; |
| 84 bool is_explicit; | 84 bool is_explicit; |
| 85 int64 response_id; |
| 85 }; | 86 }; |
| 86 | 87 |
| 88 typedef std::vector<AppCacheResourceInfo> AppCacheResourceInfoVector; |
| 89 |
| 87 // Interface used by backend (browser-process) to talk to frontend (renderer). | 90 // Interface used by backend (browser-process) to talk to frontend (renderer). |
| 88 class AppCacheFrontend { | 91 class AppCacheFrontend { |
| 89 public: | 92 public: |
| 90 virtual void OnCacheSelected( | 93 virtual void OnCacheSelected( |
| 91 int host_id, const appcache::AppCacheInfo& info) = 0; | 94 int host_id, const appcache::AppCacheInfo& info) = 0; |
| 92 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 95 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
| 93 Status status) = 0; | 96 Status status) = 0; |
| 94 virtual void OnEventRaised(const std::vector<int>& host_ids, | 97 virtual void OnEventRaised(const std::vector<int>& host_ids, |
| 95 EventID event_id) = 0; | 98 EventID event_id) = 0; |
| 96 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | 99 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 147 |
| 145 bool IsSchemeSupported(const GURL& url); | 148 bool IsSchemeSupported(const GURL& url); |
| 146 bool IsMethodSupported(const std::string& method); | 149 bool IsMethodSupported(const std::string& method); |
| 147 bool IsSchemeAndMethodSupported(const net::URLRequest* request); | 150 bool IsSchemeAndMethodSupported(const net::URLRequest* request); |
| 148 | 151 |
| 149 extern const FilePath::CharType kAppCacheDatabaseName[]; | 152 extern const FilePath::CharType kAppCacheDatabaseName[]; |
| 150 | 153 |
| 151 } // namespace | 154 } // namespace |
| 152 | 155 |
| 153 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 156 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |