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

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

Issue 6586001: Move appcache/file_sytem/device_orientation subdirectories of chrome\browser ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/appcache/appcache_frontend_proxy.h"
6
7 #include "chrome/common/render_messages.h"
8
9 AppCacheFrontendProxy::AppCacheFrontendProxy(IPC::Message::Sender* sender)
10 : sender_(sender) {
11 }
12
13 void AppCacheFrontendProxy::OnCacheSelected(
14 int host_id, const appcache::AppCacheInfo& info) {
15 sender_->Send(new AppCacheMsg_CacheSelected(host_id, info));
16 }
17
18 void AppCacheFrontendProxy::OnStatusChanged(const std::vector<int>& host_ids,
19 appcache::Status status) {
20 sender_->Send(new AppCacheMsg_StatusChanged(host_ids, status));
21 }
22
23 void AppCacheFrontendProxy::OnEventRaised(const std::vector<int>& host_ids,
24 appcache::EventID event_id) {
25 DCHECK_NE(event_id, appcache::PROGRESS_EVENT); // See OnProgressEventRaised.
26 sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id));
27 }
28
29 void AppCacheFrontendProxy::OnProgressEventRaised(
30 const std::vector<int>& host_ids,
31 const GURL& url, int num_total, int num_complete) {
32 sender_->Send(new AppCacheMsg_ProgressEventRaised(
33 host_ids, url, num_total, num_complete));
34 }
35
36 void AppCacheFrontendProxy::OnErrorEventRaised(
37 const std::vector<int>& host_ids,
38 const std::string& message) {
39 sender_->Send(new AppCacheMsg_ErrorEventRaised(
40 host_ids, message));
41 }
42
43 void AppCacheFrontendProxy::OnLogMessage(int host_id,
44 appcache::LogLevel log_level,
45 const std::string& message) {
46 sender_->Send(new AppCacheMsg_LogMessage(host_id, log_level, message));
47 }
48
49 void AppCacheFrontendProxy::OnContentBlocked(int host_id,
50 const GURL& manifest_url) {
51 sender_->Send(new AppCacheMsg_ContentBlocked(host_id, manifest_url));
52 }
OLDNEW
« no previous file with comments | « chrome/browser/appcache/appcache_frontend_proxy.h ('k') | chrome/browser/appcache/appcache_ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698