summaryrefslogtreecommitdiffstats
path: root/content/browser/appcache/mock_appcache_policy.cc
blob: 2fdfa9c9c6a7faa9eefdf3bbb98171f93222ff3d (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
// Copyright 2014 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 "content/browser/appcache/mock_appcache_policy.h"

namespace content {

MockAppCachePolicy::MockAppCachePolicy()
    : can_load_return_value_(true), can_create_return_value_(true) {
}

MockAppCachePolicy::~MockAppCachePolicy() {
}

bool MockAppCachePolicy::CanLoadAppCache(const GURL& manifest_url,
                                         const GURL& first_party) {
  requested_manifest_url_ = manifest_url;
  return can_load_return_value_;
}

bool MockAppCachePolicy::CanCreateAppCache(const GURL& manifest_url,
                                           const GURL& first_party) {
  requested_manifest_url_ = manifest_url;
  return can_create_return_value_;
}

}  // namespace content