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 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ |
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ |
7 | 7 |
8 #include "content/public/renderer/render_process_observer.h" | 8 #include "content/public/renderer/render_process_observer.h" |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 | 11 |
12 namespace android_webview { | 12 namespace android_webview { |
13 | 13 |
14 // A RenderProcessObserver implementation used for handling android_webview | 14 // A RenderProcessObserver implementation used for handling android_webview |
15 // specific render-process wide IPC messages. | 15 // specific render-process wide IPC messages. |
16 class AwRenderProcessObserver : public content::RenderProcessObserver { | 16 class AwRenderProcessObserver : public content::RenderProcessObserver { |
17 public: | 17 public: |
18 AwRenderProcessObserver(); | 18 AwRenderProcessObserver(); |
19 virtual ~AwRenderProcessObserver(); | 19 virtual ~AwRenderProcessObserver(); |
20 | 20 |
21 // content::RenderProcessObserver implementation. | 21 // content::RenderProcessObserver implementation. |
22 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 22 virtual bool OnControlMessageReceived(const IPC::Message& message) override; |
23 virtual void WebKitInitialized() OVERRIDE; | 23 virtual void WebKitInitialized() override; |
24 | 24 |
25 private: | 25 private: |
26 void OnClearCache(); | 26 void OnClearCache(); |
27 void OnSetJsOnlineProperty(bool network_up); | 27 void OnSetJsOnlineProperty(bool network_up); |
28 | 28 |
29 bool webkit_initialized_; | 29 bool webkit_initialized_; |
30 }; | 30 }; |
31 | 31 |
32 } // namespace android_webview | 32 } // namespace android_webview |
33 | 33 |
34 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ | 34 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ |
35 | 35 |
OLD | NEW |