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 #include "webkit/appcache/appcache_interfaces.h" | 5 #include "webkit/appcache/appcache_interfaces.h" |
6 | 6 |
7 #include "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
8 #include "net/url_request/url_request.h" | 8 #include "net/url_request/url_request.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebApplicationCacheHo
st.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebApplicationCacheHo
st.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
11 | 11 |
12 using WebKit::WebApplicationCacheHost; | 12 using WebKit::WebApplicationCacheHost; |
13 using WebKit::WebConsoleMessage; | 13 using WebKit::WebConsoleMessage; |
14 | 14 |
15 namespace appcache { | 15 namespace appcache { |
16 | 16 |
17 const char kManifestMimeType[] = "text/cache-manifest"; | |
18 | |
19 const char kHttpScheme[] = "http"; | 17 const char kHttpScheme[] = "http"; |
20 const char kHttpsScheme[] = "https"; | 18 const char kHttpsScheme[] = "https"; |
21 const char kHttpGETMethod[] = "GET"; | 19 const char kHttpGETMethod[] = "GET"; |
22 const char kHttpHEADMethod[] = "HEAD"; | 20 const char kHttpHEADMethod[] = "HEAD"; |
23 | 21 |
24 const FilePath::CharType kAppCacheDatabaseName[] = FILE_PATH_LITERAL("Index"); | 22 const FilePath::CharType kAppCacheDatabaseName[] = FILE_PATH_LITERAL("Index"); |
25 | 23 |
26 AppCacheInfo::AppCacheInfo() | 24 AppCacheInfo::AppCacheInfo() |
27 : cache_id(kNoCacheId), | 25 : cache_id(kNoCacheId), |
28 group_id(0), | 26 group_id(0), |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip == | 102 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip == |
105 (int)LOG_TIP, LevelTip); | 103 (int)LOG_TIP, LevelTip); |
106 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == | 104 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == |
107 (int)LOG_INFO, LevelLog); | 105 (int)LOG_INFO, LevelLog); |
108 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == | 106 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == |
109 (int)LOG_WARNING, LevelWarning); | 107 (int)LOG_WARNING, LevelWarning); |
110 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == | 108 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == |
111 (int)LOG_ERROR, LevelError); | 109 (int)LOG_ERROR, LevelError); |
112 | 110 |
113 } // namespace appcache | 111 } // namespace appcache |
OLD | NEW |