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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/mock_appcache_policy.h ('k') | webkit/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "webkit/appcache/mock_appcache_policy.h"
6
7 namespace appcache {
8
9 MockAppCachePolicy::MockAppCachePolicy()
10 : can_load_return_value_(true), can_create_return_value_(true) {
11 }
12
13 MockAppCachePolicy::~MockAppCachePolicy() {
14 }
15
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_;
20 }
21
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_;
26 }
27
28 } // namespace appcache
OLDNEW
« 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