Dismiss autofill popup on screen orientation change.
[chromium-blink-merge.git] / webkit / browser / appcache / mock_appcache_policy.cc
blobb74d754da44d80177e0712ff10cd209cdd2324fe
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 #include "webkit/browser/appcache/mock_appcache_policy.h"
7 namespace appcache {
9 MockAppCachePolicy::MockAppCachePolicy()
10 : can_load_return_value_(true), can_create_return_value_(true) {
13 MockAppCachePolicy::~MockAppCachePolicy() {
16 bool MockAppCachePolicy::CanLoadAppCache(const GURL& manifest_url,
17 const GURL& first_party) {
18 requested_manifest_url_ = manifest_url;
19 return can_load_return_value_;
22 bool MockAppCachePolicy::CanCreateAppCache(const GURL& manifest_url,
23 const GURL& first_party) {
24 requested_manifest_url_ = manifest_url;
25 return can_create_return_value_;
28 } // namespace appcache