summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/simple_appcache_system.h
blob: 6f535243417af2de6e3778393bae850746f176f5 (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.

#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_
#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_

#include "webkit/appcache/appcache_backend_impl.h"
#include "webkit/appcache/appcache_frontend_impl.h"

class SimpleAppCacheSystem {
 public:
  void Initialize() {
    backend_impl_.Initialize(NULL, &frontend_impl_);
  }

  appcache::AppCacheBackend* backend() { return &backend_impl_; }
  appcache::AppCacheFrontend* frontend() { return &frontend_impl_; }

 private:
  appcache::AppCacheBackendImpl backend_impl_;
  appcache::AppCacheFrontendImpl frontend_impl_;
};

#endif  // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_APPCACHE_SYSTEM_H_