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

Side by Side Diff: webkit/appcache/appcache_interfaces.cc

Issue 8343018: More groundwork for flat file based response storage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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_interfaces.h ('k') | webkit/appcache/appcache_request_handler.h » ('j') | 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) 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"; 17 const char kManifestMimeType[] = "text/cache-manifest";
18 18
19 const char kHttpScheme[] = "http"; 19 const char kHttpScheme[] = "http";
20 const char kHttpsScheme[] = "https"; 20 const char kHttpsScheme[] = "https";
21 const char kHttpGETMethod[] = "GET"; 21 const char kHttpGETMethod[] = "GET";
22 const char kHttpHEADMethod[] = "HEAD"; 22 const char kHttpHEADMethod[] = "HEAD";
23 23
24 const FilePath::CharType kAppCacheDatabaseName[] = FILE_PATH_LITERAL("Index"); 24 const FilePath::CharType kAppCacheDatabaseName[] = FILE_PATH_LITERAL("Index");
25 25
26 AppCacheInfo::AppCacheInfo() 26 AppCacheInfo::AppCacheInfo()
27 : cache_id(kNoCacheId), 27 : cache_id(kNoCacheId),
28 group_id(0),
28 status(UNCACHED), 29 status(UNCACHED),
29 size(0), 30 size(0),
30 is_complete(false) { 31 is_complete(false) {
31 } 32 }
32 33
33 AppCacheInfo::~AppCacheInfo() { 34 AppCacheInfo::~AppCacheInfo() {
34 } 35 }
35 36
36 AppCacheResourceInfo::AppCacheResourceInfo() 37 AppCacheResourceInfo::AppCacheResourceInfo()
37 : url(), 38 : url(),
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip == 104 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip ==
104 (int)LOG_TIP, LevelTip); 105 (int)LOG_TIP, LevelTip);
105 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == 106 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog ==
106 (int)LOG_INFO, LevelLog); 107 (int)LOG_INFO, LevelLog);
107 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == 108 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning ==
108 (int)LOG_WARNING, LevelWarning); 109 (int)LOG_WARNING, LevelWarning);
109 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == 110 COMPILE_ASSERT((int)WebConsoleMessage::LevelError ==
110 (int)LOG_ERROR, LevelError); 111 (int)LOG_ERROR, LevelError);
111 112
112 } // namespace appcache 113 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_interfaces.h ('k') | webkit/appcache/appcache_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698