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_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
7 | 7 |
8 #include "content/public/browser/web_contents_observer.h" | 8 #include "content/public/browser/web_contents_observer.h" |
9 | 9 |
10 #include "android_webview/common/aw_hit_test_data.h" | 10 #include "android_webview/common/aw_hit_test_data.h" |
| 11 #include "base/callback_forward.h" |
11 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
12 | 13 |
13 namespace android_webview { | 14 namespace android_webview { |
14 | 15 |
15 // Provides RenderViewHost wrapper functionality for sending WebView-specific | 16 // Provides RenderViewHost wrapper functionality for sending WebView-specific |
16 // IPC messages to the renderer and from there to WebKit. | 17 // IPC messages to the renderer and from there to WebKit. |
17 class AwRenderViewHostExt : public content::WebContentsObserver, | 18 class AwRenderViewHostExt : public content::WebContentsObserver, |
18 public base::NonThreadSafe { | 19 public base::NonThreadSafe { |
19 public: | 20 public: |
20 // To send receive messages to a RenderView we take the WebContents instance, | 21 // To send receive messages to a RenderView we take the WebContents instance, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 AwHitTestData last_hit_test_data_; | 59 AwHitTestData last_hit_test_data_; |
59 | 60 |
60 bool has_new_hit_test_data_; | 61 bool has_new_hit_test_data_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); | 63 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace android_webview | 66 } // namespace android_webview |
66 | 67 |
67 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ | 68 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ |
OLD | NEW |