blob: bebc22db4cb0bf994adc864fb6f53a11e6f5fcbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_APPCACHE_APPCACHE_HOST_H_
#define WEBKIT_APPCACHE_APPCACHE_HOST_H_
namespace appcache {
class AppCache;
class AppCacheFrontend;
// Server-side representation of an application cache host.
class AppCacheHost {
public:
AppCacheHost(int host_id, AppCacheFrontend* frontend);
~AppCacheHost();
int host_id() { return host_id_; }
AppCacheFrontend* frontend() { return frontend_; }
AppCache* selected_cache() { return selected_cache_; }
void set_selected_cache(AppCache* cache) {
selected_cache_ = cache;
}
bool is_selection_pending() {
return false; // TODO(michaeln)
}
private:
// identifies the corresponding appcache host in the child process
int host_id_;
// application cache associated with this host, if any
AppCache* selected_cache_;
// frontend to deliver notifications about this host to child process
AppCacheFrontend* frontend_;
};
} // namespace appcache
#endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_
|