OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_POLICY_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_POLICY_H_ |
6 #define CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_POLICY_H_ | 6 #define CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_POLICY_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/browser/appcache/appcache_policy.h" | 9 #include "content/browser/appcache/appcache_policy.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class MockAppCachePolicy : public AppCachePolicy { | 14 class MockAppCachePolicy : public AppCachePolicy { |
15 public: | 15 public: |
16 MockAppCachePolicy(); | 16 MockAppCachePolicy(); |
17 virtual ~MockAppCachePolicy(); | 17 virtual ~MockAppCachePolicy(); |
18 | 18 |
19 virtual bool CanLoadAppCache(const GURL& manifest_url, | 19 virtual bool CanLoadAppCache(const GURL& manifest_url, |
20 const GURL& first_party) OVERRIDE; | 20 const GURL& first_party) override; |
21 virtual bool CanCreateAppCache(const GURL& manifest_url, | 21 virtual bool CanCreateAppCache(const GURL& manifest_url, |
22 const GURL& first_party) OVERRIDE; | 22 const GURL& first_party) override; |
23 | 23 |
24 bool can_load_return_value_; | 24 bool can_load_return_value_; |
25 bool can_create_return_value_; | 25 bool can_create_return_value_; |
26 GURL requested_manifest_url_; | 26 GURL requested_manifest_url_; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace content | 29 } // namespace content |
30 | 30 |
31 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_POLICY_H_ | 31 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_POLICY_H_ |
OLD | NEW |