| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void OnLogMessage(int host_id, LogLevel log_level, | 103 virtual void OnLogMessage(int host_id, LogLevel log_level, |
| 104 const std::string& message) = 0; | 104 const std::string& message) = 0; |
| 105 virtual ~AppCacheFrontend() {} | 105 virtual ~AppCacheFrontend() {} |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 // Interface used by frontend (renderer) to talk to backend (browser-process). | 108 // Interface used by frontend (renderer) to talk to backend (browser-process). |
| 109 class AppCacheBackend { | 109 class AppCacheBackend { |
| 110 public: | 110 public: |
| 111 virtual void RegisterHost(int host_id) = 0; | 111 virtual void RegisterHost(int host_id) = 0; |
| 112 virtual void UnregisterHost(int host_id) = 0; | 112 virtual void UnregisterHost(int host_id) = 0; |
| 113 virtual void SetSpawningHostId(int host_id, int spawning_host_id) = 0; |
| 113 virtual void SelectCache(int host_id, | 114 virtual void SelectCache(int host_id, |
| 114 const GURL& document_url, | 115 const GURL& document_url, |
| 115 const int64 cache_document_was_loaded_from, | 116 const int64 cache_document_was_loaded_from, |
| 116 const GURL& manifest_url) = 0; | 117 const GURL& manifest_url) = 0; |
| 117 virtual void SelectCacheForWorker( | 118 virtual void SelectCacheForWorker( |
| 118 int host_id, | 119 int host_id, |
| 119 int parent_process_id, | 120 int parent_process_id, |
| 120 int parent_host_id) = 0; | 121 int parent_host_id) = 0; |
| 121 virtual void SelectCacheForSharedWorker( | 122 virtual void SelectCacheForSharedWorker( |
| 122 int host_id, | 123 int host_id, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 143 | 144 |
| 144 bool IsSchemeSupported(const GURL& url); | 145 bool IsSchemeSupported(const GURL& url); |
| 145 bool IsMethodSupported(const std::string& method); | 146 bool IsMethodSupported(const std::string& method); |
| 146 bool IsSchemeAndMethodSupported(const net::URLRequest* request); | 147 bool IsSchemeAndMethodSupported(const net::URLRequest* request); |
| 147 | 148 |
| 148 extern const FilePath::CharType kAppCacheDatabaseName[]; | 149 extern const FilePath::CharType kAppCacheDatabaseName[]; |
| 149 | 150 |
| 150 } // namespace | 151 } // namespace |
| 151 | 152 |
| 152 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 153 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
| OLD | NEW |