This source file includes following definitions.
- can_create_return_value_
- CanLoadAppCache
- CanCreateAppCache
#include "webkit/browser/appcache/mock_appcache_policy.h"
namespace appcache {
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_;
}
}