Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: webkit/appcache/mock_appcache_policy.cc

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/mock_appcache_policy.h ('k') | webkit/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/mock_appcache_policy.cc
diff --git a/webkit/appcache/mock_appcache_policy.cc b/webkit/appcache/mock_appcache_policy.cc
new file mode 100644
index 0000000000000000000000000000000000000000..04ef3c3335a76872dcf3fafc9e0e1153d8b594a0
--- /dev/null
+++ b/webkit/appcache/mock_appcache_policy.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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 "webkit/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_;
+}
+
+} // namespace appcache
« no previous file with comments | « webkit/appcache/mock_appcache_policy.h ('k') | webkit/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698