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" |
11 | 11 |
12 using WebKit::WebApplicationCacheHost; | 12 using blink::WebApplicationCacheHost; |
13 using WebKit::WebConsoleMessage; | 13 using blink::WebConsoleMessage; |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 // Inline helper to keep the lines shorter and unwrapped. | 17 // Inline helper to keep the lines shorter and unwrapped. |
18 inline WebApplicationCacheHostImpl* GetHost(int id) { | 18 inline WebApplicationCacheHostImpl* GetHost(int id) { |
19 return WebApplicationCacheHostImpl::FromId(id); | 19 return WebApplicationCacheHostImpl::FromId(id); |
20 } | 20 } |
21 | 21 |
22 void AppCacheFrontendImpl::OnCacheSelected(int host_id, | 22 void AppCacheFrontendImpl::OnCacheSelected(int host_id, |
23 const appcache::AppCacheInfo& info) { | 23 const appcache::AppCacheInfo& info) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 COMPILE_ASSERT((int)WebConsoleMessage::LevelDebug == | 119 COMPILE_ASSERT((int)WebConsoleMessage::LevelDebug == |
120 (int)appcache::LOG_DEBUG, LevelDebug); | 120 (int)appcache::LOG_DEBUG, LevelDebug); |
121 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == | 121 COMPILE_ASSERT((int)WebConsoleMessage::LevelLog == |
122 (int)appcache::LOG_INFO, LevelLog); | 122 (int)appcache::LOG_INFO, LevelLog); |
123 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == | 123 COMPILE_ASSERT((int)WebConsoleMessage::LevelWarning == |
124 (int)appcache::LOG_WARNING, LevelWarning); | 124 (int)appcache::LOG_WARNING, LevelWarning); |
125 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == | 125 COMPILE_ASSERT((int)WebConsoleMessage::LevelError == |
126 (int)appcache::LOG_ERROR, LevelError); | 126 (int)appcache::LOG_ERROR, LevelError); |
127 | 127 |
128 } // namespace content | 128 } // namespace content |
OLD | NEW |