OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/appcache/appcache_frontend_impl.h" | 5 #include "content/child/appcache/appcache_frontend_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/child/appcache/web_application_cache_host_impl.h" | 8 #include "content/child/appcache/web_application_cache_host_impl.h" |
9 #include "third_party/WebKit/public/web/WebApplicationCacheHost.h" | 9 #include "third_party/WebKit/public/web/WebApplicationCacheHost.h" |
10 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 10 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 host->OnLogMessage(log_level, message); | 79 host->OnLogMessage(log_level, message); |
80 } | 80 } |
81 | 81 |
82 void AppCacheFrontendImpl::OnContentBlocked(int host_id, | 82 void AppCacheFrontendImpl::OnContentBlocked(int host_id, |
83 const GURL& manifest_url) { | 83 const GURL& manifest_url) { |
84 WebApplicationCacheHostImpl* host = GetHost(host_id); | 84 WebApplicationCacheHostImpl* host = GetHost(host_id); |
85 if (host) | 85 if (host) |
86 host->OnContentBlocked(manifest_url); | 86 host->OnContentBlocked(manifest_url); |
87 } | 87 } |
88 | 88 |
| 89 void AppCacheFrontendImpl::OnControllerReady(int host_id) { |
| 90 WebApplicationCacheHostImpl* host = GetHost(host_id); |
| 91 if (host) |
| 92 host->OnControllerReady(); |
| 93 } |
| 94 |
89 // Ensure that enum values never get out of sync with the | 95 // Ensure that enum values never get out of sync with the |
90 // ones declared for use within the WebKit api | 96 // ones declared for use within the WebKit api |
91 COMPILE_ASSERT((int)WebApplicationCacheHost::Uncached == | 97 COMPILE_ASSERT((int)WebApplicationCacheHost::Uncached == |
92 (int)appcache::UNCACHED, Uncached); | 98 (int)appcache::UNCACHED, Uncached); |
93 COMPILE_ASSERT((int)WebApplicationCacheHost::Idle == | 99 COMPILE_ASSERT((int)WebApplicationCacheHost::Idle == |
94 (int)appcache::IDLE, Idle); | 100 (int)appcache::IDLE, Idle); |
95 COMPILE_ASSERT((int)WebApplicationCacheHost::Checking == | 101 COMPILE_ASSERT((int)WebApplicationCacheHost::Checking == |
96 (int)appcache::CHECKING, Checking); | 102 (int)appcache::CHECKING, Checking); |
97 COMPILE_ASSERT((int)WebApplicationCacheHost::Downloading == | 103 COMPILE_ASSERT((int)WebApplicationCacheHost::Downloading == |
98 (int)appcache::DOWNLOADING, Downloading); | 104 (int)appcache::DOWNLOADING, Downloading); |
(...skipping 20 matching lines...) Expand all Loading... |
119 COMPILE_ASSERT((int)WebConsoleMessage::LevelDebug == | 125 COMPILE_ASSERT((int)WebConsoleMessage::LevelDebug == |
120 (int)appcache::LOG_DEBUG, LevelDebug); | 126 (int)appcache::LOG_DEBUG, LevelDebug); |
121 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == | 127 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == |
122 (int)appcache::LOG_INFO, LevelLog); | 128 (int)appcache::LOG_INFO, LevelLog); |
123 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == | 129 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == |
124 (int)appcache::LOG_WARNING, LevelWarning); | 130 (int)appcache::LOG_WARNING, LevelWarning); |
125 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == | 131 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == |
126 (int)appcache::LOG_ERROR, LevelError); | 132 (int)appcache::LOG_ERROR, LevelError); |
127 | 133 |
128 } // namespace content | 134 } // namespace content |
OLD | NEW |