Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / content / browser / appcache / appcache_policy.h
blobe7ef6f1b7e5f44af51a3ddd06c934c0e265534d2
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 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_POLICY_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_POLICY_H_
8 class GURL;
10 namespace content {
12 class AppCachePolicy {
13 public:
14 AppCachePolicy() {}
16 // Called prior to loading a main resource from the appache.
17 // Returns true if allowed. This is expected to return immediately
18 // without any user prompt.
19 virtual bool CanLoadAppCache(const GURL& manifest_url,
20 const GURL& first_party) = 0;
22 // Called prior to creating a new appcache. Returns true if allowed.
23 virtual bool CanCreateAppCache(const GURL& manifest_url,
24 const GURL& first_party) = 0;
26 protected:
27 ~AppCachePolicy() {}
30 } // namespace content
32 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_POLICY_H_