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

Side by Side Diff: webkit/appcache/manifest_parser.h

Issue 8086017: add more appcache_exports needed for test_shell_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix weird merge issues Created 9 years, 2 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
« no previous file with comments | « webkit/appcache/appcache_working_set.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef WEBKIT_APPCACHE_MANIFEST_PARSER_H_ 32 #ifndef WEBKIT_APPCACHE_MANIFEST_PARSER_H_
33 #define WEBKIT_APPCACHE_MANIFEST_PARSER_H_ 33 #define WEBKIT_APPCACHE_MANIFEST_PARSER_H_
34 34
35 #include <string> 35 #include <string>
36 #include <vector> 36 #include <vector>
37 37
38 #include "base/hash_tables.h" 38 #include "base/hash_tables.h"
39 #include "webkit/appcache/appcache_export.h"
39 40
40 class GURL; 41 class GURL;
41 42
42 namespace appcache { 43 namespace appcache {
43 44
44 typedef std::pair<GURL, GURL> FallbackNamespace; 45 typedef std::pair<GURL, GURL> FallbackNamespace;
45 46
46 struct Manifest { 47 struct APPCACHE_EXPORT Manifest {
47 Manifest(); 48 Manifest();
48 ~Manifest(); 49 ~Manifest();
49 50
50 base::hash_set<std::string> explicit_urls; 51 base::hash_set<std::string> explicit_urls;
51 std::vector<FallbackNamespace> fallback_namespaces; 52 std::vector<FallbackNamespace> fallback_namespaces;
52 std::vector<GURL> online_whitelist_namespaces; 53 std::vector<GURL> online_whitelist_namespaces;
53 bool online_whitelist_all; 54 bool online_whitelist_all;
54 }; 55 };
55 56
56 bool ParseManifest(const GURL& manifest_url, const char* data, int length, 57 APPCACHE_EXPORT bool ParseManifest(const GURL& manifest_url,
57 Manifest& manifest); 58 const char* data,
59 int length,
60 Manifest& manifest);
58 61
59 } // namespace appcache 62 } // namespace appcache
60 63
61 #endif // WEBKIT_APPCACHE_MANIFEST_PARSER_H_ 64 #endif // WEBKIT_APPCACHE_MANIFEST_PARSER_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_working_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698