Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // This is a port of ManifestParser.h from WebKit/WebCore/loader/appcache. | 5 // This is a port of ManifestParser.h from WebKit/WebCore/loader/appcache. |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 8 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 Manifest(); | 47 Manifest(); |
| 48 ~Manifest(); | 48 ~Manifest(); |
| 49 | 49 |
| 50 base::hash_set<std::string> explicit_urls; | 50 base::hash_set<std::string> explicit_urls; |
| 51 NamespaceVector intercept_namespaces; | 51 NamespaceVector intercept_namespaces; |
| 52 NamespaceVector fallback_namespaces; | 52 NamespaceVector fallback_namespaces; |
| 53 NamespaceVector online_whitelist_namespaces; | 53 NamespaceVector online_whitelist_namespaces; |
| 54 bool online_whitelist_all; | 54 bool online_whitelist_all; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 WEBKIT_STORAGE_BROWSER_EXPORT bool ParseManifest(const GURL& manifest_url, | 57 WEBKIT_STORAGE_BROWSER_EXPORT bool ParseManifest( |
| 58 const char* data, | 58 const GURL& manifest_url, |
| 59 int length, | 59 const char* data, |
| 60 Manifest& manifest); | 60 int length, |
| 61 bool allow_intercepts, | |
|
darin (slow to review)
2014/05/12 23:45:32
nit: I'm a fan of using enums in cases like these
| |
| 62 Manifest& manifest); | |
| 61 | 63 |
| 62 } // namespace appcache | 64 } // namespace appcache |
| 63 | 65 |
| 64 #endif // WEBKIT_BROWSER_APPCACHE_MANIFEST_PARSER_H_ | 66 #endif // WEBKIT_BROWSER_APPCACHE_MANIFEST_PARSER_H_ |
| OLD | NEW |