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_process_observer.h" | 5 #include "android_webview/renderer/aw_render_process_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/web/WebCache.h" | 9 #include "third_party/WebKit/public/web/WebCache.h" |
10 #include "third_party/WebKit/public/web/WebNetworkStateNotifier.h" | 10 #include "third_party/WebKit/public/web/WebNetworkStateNotifier.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 IPC_END_MESSAGE_MAP() | 28 IPC_END_MESSAGE_MAP() |
29 return handled; | 29 return handled; |
30 } | 30 } |
31 | 31 |
32 void AwRenderProcessObserver::WebKitInitialized() { | 32 void AwRenderProcessObserver::WebKitInitialized() { |
33 webkit_initialized_ = true; | 33 webkit_initialized_ = true; |
34 } | 34 } |
35 | 35 |
36 void AwRenderProcessObserver::OnClearCache() { | 36 void AwRenderProcessObserver::OnClearCache() { |
37 if (webkit_initialized_) | 37 if (webkit_initialized_) |
38 WebKit::WebCache::clear(); | 38 blink::WebCache::clear(); |
39 } | 39 } |
40 | 40 |
41 void AwRenderProcessObserver::OnSetJsOnlineProperty(bool network_up) { | 41 void AwRenderProcessObserver::OnSetJsOnlineProperty(bool network_up) { |
42 if (webkit_initialized_) | 42 if (webkit_initialized_) |
43 WebKit::WebNetworkStateNotifier::setOnLine(network_up); | 43 blink::WebNetworkStateNotifier::setOnLine(network_up); |
44 } | 44 } |
45 | 45 |
46 } // nanemspace android_webview | 46 } // nanemspace android_webview |
OLD | NEW |