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

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

Issue 548373002: Rename AppCache's Manifest to AppCacheManifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 25 matching lines...) Expand all
36 #include <vector> 36 #include <vector>
37 37
38 #include "base/containers/hash_tables.h" 38 #include "base/containers/hash_tables.h"
39 #include "content/common/appcache_interfaces.h" 39 #include "content/common/appcache_interfaces.h"
40 #include "content/common/content_export.h" 40 #include "content/common/content_export.h"
41 41
42 class GURL; 42 class GURL;
43 43
44 namespace content { 44 namespace content {
45 45
46 struct CONTENT_EXPORT Manifest { 46 struct CONTENT_EXPORT AppCacheManifest {
47 Manifest(); 47 AppCacheManifest();
48 ~Manifest(); 48 ~AppCacheManifest();
49 49
50 base::hash_set<std::string> explicit_urls; 50 base::hash_set<std::string> explicit_urls;
51 AppCacheNamespaceVector intercept_namespaces; 51 AppCacheNamespaceVector intercept_namespaces;
52 AppCacheNamespaceVector fallback_namespaces; 52 AppCacheNamespaceVector fallback_namespaces;
53 AppCacheNamespaceVector online_whitelist_namespaces; 53 AppCacheNamespaceVector online_whitelist_namespaces;
54 bool online_whitelist_all; 54 bool online_whitelist_all;
55 bool did_ignore_intercept_namespaces; 55 bool did_ignore_intercept_namespaces;
56 }; 56 };
57 57
58 enum ParseMode { 58 enum ParseMode {
59 PARSE_MANIFEST_PER_STANDARD, 59 PARSE_MANIFEST_PER_STANDARD,
60 PARSE_MANIFEST_ALLOWING_INTERCEPTS 60 PARSE_MANIFEST_ALLOWING_INTERCEPTS
61 }; 61 };
62 62
63 CONTENT_EXPORT bool ParseManifest( 63 CONTENT_EXPORT bool ParseManifest(
64 const GURL& manifest_url, 64 const GURL& manifest_url,
65 const char* data, 65 const char* data,
66 int length, 66 int length,
67 ParseMode parse_mode, 67 ParseMode parse_mode,
68 Manifest& manifest); 68 AppCacheManifest& manifest);
69 69
70 } // namespace content 70 } // namespace content
71 71
72 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_MANIFEST_PARSER_H_ 72 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_MANIFEST_PARSER_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache.cc ('k') | content/browser/appcache/appcache_manifest_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698