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

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

Issue 2861007: AppCache: add plumbing to deliver logging messages to renderer process. These... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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_frontend_impl.h ('k') | webkit/appcache/appcache_group_unittest.cc » ('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_frontend_impl.h" 5 #include "webkit/appcache/appcache_frontend_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "webkit/appcache/web_application_cache_host_impl.h" 8 #include "webkit/appcache/web_application_cache_host_impl.h"
9 9
10 namespace appcache { 10 namespace appcache {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const std::vector<int>& host_ids, 46 const std::vector<int>& host_ids,
47 const GURL& url, int num_total, int num_complete) { 47 const GURL& url, int num_total, int num_complete) {
48 for (std::vector<int>::const_iterator i = host_ids.begin(); 48 for (std::vector<int>::const_iterator i = host_ids.begin();
49 i != host_ids.end(); ++i) { 49 i != host_ids.end(); ++i) {
50 WebApplicationCacheHostImpl* host = GetHost(*i); 50 WebApplicationCacheHostImpl* host = GetHost(*i);
51 if (host) 51 if (host)
52 host->OnProgressEventRaised(url, num_total, num_complete); 52 host->OnProgressEventRaised(url, num_total, num_complete);
53 } 53 }
54 } 54 }
55 55
56 void AppCacheFrontendImpl::OnLogMessage(int host_id, LogLevel log_level,
57 const std::string& message) {
58 WebApplicationCacheHostImpl* host = GetHost(host_id);
59 if (host)
60 host->OnLogMessage(log_level, message);
61 }
62
56 void AppCacheFrontendImpl::OnContentBlocked(int host_id) { 63 void AppCacheFrontendImpl::OnContentBlocked(int host_id) {
57 WebApplicationCacheHostImpl* host = GetHost(host_id); 64 WebApplicationCacheHostImpl* host = GetHost(host_id);
58 if (host) 65 if (host)
59 host->OnContentBlocked(); 66 host->OnContentBlocked();
60 } 67 }
61 68
62 } // namespace appcache 69 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698