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

Side by Side Diff: content/browser/appcache/appcache_frontend_proxy.cc

Issue 164933002: Expose details for appcache error events [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-up Created 6 years, 10 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
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 "content/browser/appcache/appcache_frontend_proxy.h" 5 #include "content/browser/appcache/appcache_frontend_proxy.h"
6 6
7 #include "content/common/appcache_messages.h" 7 #include "content/common/appcache_messages.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 17 matching lines...) Expand all
28 sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id)); 28 sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id));
29 } 29 }
30 30
31 void AppCacheFrontendProxy::OnProgressEventRaised( 31 void AppCacheFrontendProxy::OnProgressEventRaised(
32 const std::vector<int>& host_ids, 32 const std::vector<int>& host_ids,
33 const GURL& url, int num_total, int num_complete) { 33 const GURL& url, int num_total, int num_complete) {
34 sender_->Send(new AppCacheMsg_ProgressEventRaised( 34 sender_->Send(new AppCacheMsg_ProgressEventRaised(
35 host_ids, url, num_total, num_complete)); 35 host_ids, url, num_total, num_complete));
36 } 36 }
37 37
38 void AppCacheFrontendProxy::OnErrorEventRaised( 38 void AppCacheFrontendProxy::OnErrorEventRaised(const std::vector<int>& host_ids,
39 const std::vector<int>& host_ids, 39 const std::string& message,
40 const std::string& message) { 40 const std::string& reason,
41 sender_->Send(new AppCacheMsg_ErrorEventRaised( 41 const GURL& url,
42 host_ids, message)); 42 int status) {
43 sender_->Send(
44 new AppCacheMsg_ErrorEventRaised(host_ids, message, reason, url, status));
43 } 45 }
44 46
45 void AppCacheFrontendProxy::OnLogMessage(int host_id, 47 void AppCacheFrontendProxy::OnLogMessage(int host_id,
46 appcache::LogLevel log_level, 48 appcache::LogLevel log_level,
47 const std::string& message) { 49 const std::string& message) {
48 sender_->Send(new AppCacheMsg_LogMessage(host_id, log_level, message)); 50 sender_->Send(new AppCacheMsg_LogMessage(host_id, log_level, message));
49 } 51 }
50 52
51 void AppCacheFrontendProxy::OnContentBlocked(int host_id, 53 void AppCacheFrontendProxy::OnContentBlocked(int host_id,
52 const GURL& manifest_url) { 54 const GURL& manifest_url) {
53 sender_->Send(new AppCacheMsg_ContentBlocked(host_id, manifest_url)); 55 sender_->Send(new AppCacheMsg_ContentBlocked(host_id, manifest_url));
54 } 56 }
55 57
56 } // namespace content 58 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698