When Retrier succeeds, record errors it encountered.
[chromium-blink-merge.git] / webkit / appcache / mock_appcache_policy.h
blob5c70002635cb41dd018a94435445bdb4a8ffd496
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_APPCACHE_MOCK_APPCACHE_POLICY_H_
6 #define WEBKIT_APPCACHE_MOCK_APPCACHE_POLICY_H_
8 #include "base/compiler_specific.h"
9 #include "googleurl/src/gurl.h"
10 #include "webkit/appcache/appcache_policy.h"
12 namespace appcache {
14 class MockAppCachePolicy : public AppCachePolicy {
15 public:
16 MockAppCachePolicy();
17 virtual ~MockAppCachePolicy();
19 virtual bool CanLoadAppCache(const GURL& manifest_url,
20 const GURL& first_party) OVERRIDE;
21 virtual bool CanCreateAppCache(const GURL& manifest_url,
22 const GURL& first_party) OVERRIDE;
24 bool can_load_return_value_;
25 bool can_create_return_value_;
26 GURL requested_manifest_url_;
29 } // namespace appcache
31 #endif // WEBKIT_APPCACHE_MOCK_APPCACHE_POLICY_H_