| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "android_webview/renderer/aw_render_thread_observer.h" | 5 #include "android_webview/renderer/aw_render_thread_observer.h" |
| 6 | 6 |
| 7 #include "android_webview/common/render_view_messages.h" | 7 #include "android_webview/common/render_view_messages.h" |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "third_party/WebKit/public/platform/WebCache.h" | 9 #include "third_party/WebKit/public/platform/WebCache.h" |
| 10 #include "third_party/WebKit/public/platform/WebNetworkStateNotifier.h" | 10 #include "third_party/WebKit/public/platform/WebNetworkStateNotifier.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 void AwRenderThreadObserver::OnKillProcess() { | 36 void AwRenderThreadObserver::OnKillProcess() { |
| 37 LOG(ERROR) << "Killing process (" << getpid() << ") upon request."; | 37 LOG(ERROR) << "Killing process (" << getpid() << ") upon request."; |
| 38 kill(getpid(), SIGKILL); | 38 kill(getpid(), SIGKILL); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void AwRenderThreadObserver::OnSetJsOnlineProperty(bool network_up) { | 41 void AwRenderThreadObserver::OnSetJsOnlineProperty(bool network_up) { |
| 42 blink::WebNetworkStateNotifier::SetOnLine(network_up); | 42 blink::WebNetworkStateNotifier::SetOnLine(network_up); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // nanemspace android_webview | 45 } // namespace android_webview |
| OLD | NEW |