| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 kHttpScheme[] = "http"; | 17 const char kHttpScheme[] = "http"; |
| 18 const char kHttpsScheme[] = "https"; | 18 const char kHttpsScheme[] = "https"; |
| 19 const char kHttpGETMethod[] = "GET"; | 19 const char kHttpGETMethod[] = "GET"; |
| 20 const char kHttpHEADMethod[] = "HEAD"; | 20 const char kHttpHEADMethod[] = "HEAD"; |
| 21 | 21 |
| 22 const FilePath::CharType kAppCacheDatabaseName[] = FILE_PATH_LITERAL("Index"); | 22 const base::FilePath::CharType kAppCacheDatabaseName[] = |
| 23 FILE_PATH_LITERAL("Index"); |
| 23 | 24 |
| 24 AppCacheInfo::AppCacheInfo() | 25 AppCacheInfo::AppCacheInfo() |
| 25 : cache_id(kNoCacheId), | 26 : cache_id(kNoCacheId), |
| 26 group_id(0), | 27 group_id(0), |
| 27 status(UNCACHED), | 28 status(UNCACHED), |
| 28 size(0), | 29 size(0), |
| 29 is_complete(false) { | 30 is_complete(false) { |
| 30 } | 31 } |
| 31 | 32 |
| 32 AppCacheInfo::~AppCacheInfo() { | 33 AppCacheInfo::~AppCacheInfo() { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip == | 116 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip == |
| 116 (int)LOG_TIP, LevelTip); | 117 (int)LOG_TIP, LevelTip); |
| 117 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == | 118 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == |
| 118 (int)LOG_INFO, LevelLog); | 119 (int)LOG_INFO, LevelLog); |
| 119 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == | 120 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == |
| 120 (int)LOG_WARNING, LevelWarning); | 121 (int)LOG_WARNING, LevelWarning); |
| 121 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == | 122 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == |
| 122 (int)LOG_ERROR, LevelError); | 123 (int)LOG_ERROR, LevelError); |
| 123 | 124 |
| 124 } // namespace appcache | 125 } // namespace appcache |
| OLD | NEW |