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

Side by Side Diff: content/browser/appcache/appcache_policy.h

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 WEBKIT_BROWSER_APPCACHE_APPCACHE_POLICY_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_POLICY_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_POLICY_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_POLICY_H_
7 7
8 class GURL; 8 class GURL;
9 9
10 namespace appcache { 10 namespace content {
11 11
12 class AppCachePolicy { 12 class AppCachePolicy {
13 public: 13 public:
14 AppCachePolicy() {} 14 AppCachePolicy() {}
15 15
16 // Called prior to loading a main resource from the appache. 16 // Called prior to loading a main resource from the appache.
17 // Returns true if allowed. This is expected to return immediately 17 // Returns true if allowed. This is expected to return immediately
18 // without any user prompt. 18 // without any user prompt.
19 virtual bool CanLoadAppCache(const GURL& manifest_url, 19 virtual bool CanLoadAppCache(const GURL& manifest_url,
20 const GURL& first_party) = 0; 20 const GURL& first_party) = 0;
21 21
22 // Called prior to creating a new appcache. Returns true if allowed. 22 // Called prior to creating a new appcache. Returns true if allowed.
23 virtual bool CanCreateAppCache(const GURL& manifest_url, 23 virtual bool CanCreateAppCache(const GURL& manifest_url,
24 const GURL& first_party) = 0; 24 const GURL& first_party) = 0;
25 25
26 protected: 26 protected:
27 ~AppCachePolicy() {} 27 ~AppCachePolicy() {}
28 }; 28 };
29 29
30 } // namespace appcache 30 } // namespace content
31 31
32 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_POLICY_H_ 32 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698