| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 #include "base/hash_tables.h" | 38 #include "base/hash_tables.h" |
| 39 | 39 |
| 40 class GURL; | 40 class GURL; |
| 41 | 41 |
| 42 namespace appcache { | 42 namespace appcache { |
| 43 | 43 |
| 44 typedef std::pair<GURL, GURL> FallbackNamespace; | 44 typedef std::pair<GURL, GURL> FallbackNamespace; |
| 45 | 45 |
| 46 struct Manifest { | 46 struct Manifest { |
| 47 Manifest(); |
| 48 ~Manifest(); |
| 49 |
| 47 base::hash_set<std::string> explicit_urls; | 50 base::hash_set<std::string> explicit_urls; |
| 48 std::vector<FallbackNamespace> fallback_namespaces; | 51 std::vector<FallbackNamespace> fallback_namespaces; |
| 49 std::vector<GURL> online_whitelist_namespaces; | 52 std::vector<GURL> online_whitelist_namespaces; |
| 50 bool online_whitelist_all; | 53 bool online_whitelist_all; |
| 51 | |
| 52 Manifest() : online_whitelist_all(false) {} | |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 bool ParseManifest(const GURL& manifest_url, const char* data, int length, | 56 bool ParseManifest(const GURL& manifest_url, const char* data, int length, |
| 56 Manifest& manifest); | 57 Manifest& manifest); |
| 57 | 58 |
| 58 } // namespace appcache | 59 } // namespace appcache |
| 59 | 60 |
| 60 #endif // WEBKIT_APPCACHE_MANIFEST_PARSER_H_ | 61 #endif // WEBKIT_APPCACHE_MANIFEST_PARSER_H_ |
| OLD | NEW |