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

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

Issue 7326023: about://appcache-internals enhancements (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/view_appcache_internals_job.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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"
(...skipping 22 matching lines...) Expand all
33 AppCacheInfo::~AppCacheInfo() { 33 AppCacheInfo::~AppCacheInfo() {
34 } 34 }
35 35
36 AppCacheResourceInfo::AppCacheResourceInfo() 36 AppCacheResourceInfo::AppCacheResourceInfo()
37 : url(), 37 : url(),
38 size(0), 38 size(0),
39 is_master(0), 39 is_master(0),
40 is_manifest(0), 40 is_manifest(0),
41 is_fallback(0), 41 is_fallback(0),
42 is_foreign(0), 42 is_foreign(0),
43 is_explicit(0) { 43 is_explicit(0),
44 response_id(kNoResponseId) {
44 } 45 }
45 46
46 AppCacheResourceInfo::~AppCacheResourceInfo() { 47 AppCacheResourceInfo::~AppCacheResourceInfo() {
47 } 48 }
48 49
49 bool IsSchemeSupported(const GURL& url) { 50 bool IsSchemeSupported(const GURL& url) {
50 bool supported = url.SchemeIs(kHttpScheme) || url.SchemeIs(kHttpsScheme); 51 bool supported = url.SchemeIs(kHttpScheme) || url.SchemeIs(kHttpsScheme);
51 #ifndef NDEBUG 52 #ifndef NDEBUG
52 // TODO(michaeln): It would be really nice if this could optionally work for 53 // TODO(michaeln): It would be really nice if this could optionally work for
53 // file urls too to help web developers experiment and test their apps, 54 // file urls too to help web developers experiment and test their apps,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip == 103 COMPILE_ASSERT((int)WebConsoleMessage::LevelTip ==
103 (int)LOG_TIP, LevelTip); 104 (int)LOG_TIP, LevelTip);
104 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == 105 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog ==
105 (int)LOG_INFO, LevelLog); 106 (int)LOG_INFO, LevelLog);
106 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == 107 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning ==
107 (int)LOG_WARNING, LevelWarning); 108 (int)LOG_WARNING, LevelWarning);
108 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == 109 COMPILE_ASSERT((int)WebConsoleMessage::LevelError ==
109 (int)LOG_ERROR, LevelError); 110 (int)LOG_ERROR, LevelError);
110 111
111 } // namespace appcache 112 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_interfaces.h ('k') | webkit/appcache/view_appcache_internals_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698