blob: 7585f606cba9a079ebe3656e12baa7a3182a04c6 (
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
|
// 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.
#include "webkit/appcache/appcache_host.h"
#include "base/logging.h"
#include "webkit/appcache/appcache.h"
#include "webkit/appcache/appcache_interfaces.h"
namespace appcache {
AppCacheHost::AppCacheHost(int host_id, AppCacheFrontend* frontend)
: host_id_(host_id),
selected_cache_(NULL),
frontend_(frontend) {
}
AppCacheHost::~AppCacheHost() {
if (selected_cache_) {
selected_cache_->UnassociateHost(this);
}
}
} // namespace appcache
|