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

Unified Diff: content/child/appcache_dispatcher.cc

Issue 22410007: Move appcache_frontend_impl.* to content/renderer/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/appcache_dispatcher.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/appcache_dispatcher.cc
diff --git a/content/child/appcache_dispatcher.cc b/content/child/appcache_dispatcher.cc
deleted file mode 100644
index 96adc895b0873909a55583717d827629ac45e751..0000000000000000000000000000000000000000
--- a/content/child/appcache_dispatcher.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/child/appcache_dispatcher.h"
-
-#include "content/common/appcache_messages.h"
-
-namespace content {
-
-AppCacheDispatcher::AppCacheDispatcher(
- IPC::Sender* sender,
- appcache::AppCacheFrontend* frontend)
- : backend_proxy_(sender),
- frontend_(frontend) {}
-
-AppCacheDispatcher::~AppCacheDispatcher() {}
-
-bool AppCacheDispatcher::OnMessageReceived(const IPC::Message& msg) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(AppCacheDispatcher, msg)
- IPC_MESSAGE_HANDLER(AppCacheMsg_CacheSelected, OnCacheSelected)
- IPC_MESSAGE_HANDLER(AppCacheMsg_StatusChanged, OnStatusChanged)
- IPC_MESSAGE_HANDLER(AppCacheMsg_EventRaised, OnEventRaised)
- IPC_MESSAGE_HANDLER(AppCacheMsg_ProgressEventRaised, OnProgressEventRaised)
- IPC_MESSAGE_HANDLER(AppCacheMsg_ErrorEventRaised, OnErrorEventRaised)
- IPC_MESSAGE_HANDLER(AppCacheMsg_LogMessage, OnLogMessage)
- IPC_MESSAGE_HANDLER(AppCacheMsg_ContentBlocked, OnContentBlocked)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
-}
-
-void AppCacheDispatcher::OnCacheSelected(
- int host_id, const appcache::AppCacheInfo& info) {
- frontend_->OnCacheSelected(host_id, info);
-}
-
-void AppCacheDispatcher::OnStatusChanged(const std::vector<int>& host_ids,
- appcache::Status status) {
- frontend_->OnStatusChanged(host_ids, status);
-}
-
-void AppCacheDispatcher::OnEventRaised(const std::vector<int>& host_ids,
- appcache::EventID event_id) {
- frontend_->OnEventRaised(host_ids, event_id);
-}
-
-void AppCacheDispatcher::OnProgressEventRaised(
- const std::vector<int>& host_ids,
- const GURL& url, int num_total, int num_complete) {
- frontend_->OnProgressEventRaised(host_ids, url, num_total, num_complete);
-}
-
-void AppCacheDispatcher::OnErrorEventRaised(
- const std::vector<int>& host_ids,
- const std::string& message) {
- frontend_->OnErrorEventRaised(host_ids, message);
-}
-
-void AppCacheDispatcher::OnLogMessage(
- int host_id, int log_level, const std::string& message) {
- frontend_->OnLogMessage(
- host_id, static_cast<appcache::LogLevel>(log_level), message);
-}
-
-void AppCacheDispatcher::OnContentBlocked(int host_id,
- const GURL& manifest_url) {
- frontend_->OnContentBlocked(host_id, manifest_url);
-}
-
-} // namespace content
« no previous file with comments | « content/child/appcache_dispatcher.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698