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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Interface used by backend to talk to frontend. | 47 // Interface used by backend to talk to frontend. |
48 class AppCacheFrontend { | 48 class AppCacheFrontend { |
49 public: | 49 public: |
50 virtual void OnCacheSelected(int host_id, int64 cache_id , | 50 virtual void OnCacheSelected(int host_id, int64 cache_id , |
51 Status status) = 0; | 51 Status status) = 0; |
52 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 52 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
53 Status status) = 0; | 53 Status status) = 0; |
54 virtual void OnEventRaised(const std::vector<int>& host_ids, | 54 virtual void OnEventRaised(const std::vector<int>& host_ids, |
55 EventID event_id) = 0; | 55 EventID event_id) = 0; |
| 56 virtual void OnContentBlocked(int host_id) = 0; |
56 | 57 |
57 virtual ~AppCacheFrontend() {} | 58 virtual ~AppCacheFrontend() {} |
58 }; | 59 }; |
59 | 60 |
60 // Interface used by frontend to talk to backend. | 61 // Interface used by frontend to talk to backend. |
61 class AppCacheBackend { | 62 class AppCacheBackend { |
62 public: | 63 public: |
63 virtual void RegisterHost(int host_id) = 0; | 64 virtual void RegisterHost(int host_id) = 0; |
64 virtual void UnregisterHost(int host_id) = 0; | 65 virtual void UnregisterHost(int host_id) = 0; |
65 virtual void SelectCache(int host_id, | 66 virtual void SelectCache(int host_id, |
(...skipping 20 matching lines...) Expand all Loading... |
86 | 87 |
87 bool IsSchemeSupported(const GURL& url); | 88 bool IsSchemeSupported(const GURL& url); |
88 bool IsMethodSupported(const std::string& method); | 89 bool IsMethodSupported(const std::string& method); |
89 bool IsSchemeAndMethodSupported(const URLRequest* request); | 90 bool IsSchemeAndMethodSupported(const URLRequest* request); |
90 | 91 |
91 extern const FilePath::CharType kAppCacheDatabaseName[]; | 92 extern const FilePath::CharType kAppCacheDatabaseName[]; |
92 | 93 |
93 } // namespace | 94 } // namespace |
94 | 95 |
95 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ | 96 #endif // WEBKIT_APPCACHE_APPCACHE_INTERFACES_H_ |
OLD | NEW |