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

Side by Side Diff: android_webview/renderer/aw_render_thread_observer.cc

Issue 2710023006: Move NetworkStateNotifier from core (and web) into platform/network (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/web/WebNetworkStateNotifier.h" 10 #include "third_party/WebKit/public/platform/WebNetworkStateNotifier.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 13
14 AwRenderThreadObserver::AwRenderThreadObserver() { 14 AwRenderThreadObserver::AwRenderThreadObserver() {
15 } 15 }
16 16
17 AwRenderThreadObserver::~AwRenderThreadObserver() { 17 AwRenderThreadObserver::~AwRenderThreadObserver() {
18 } 18 }
19 19
20 bool AwRenderThreadObserver::OnControlMessageReceived( 20 bool AwRenderThreadObserver::OnControlMessageReceived(
(...skipping 15 matching lines...) Expand all
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 } // nanemspace android_webview
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698