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_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" | 23 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" |
24 #include "android_webview/native/permission/permission_request_handler_client.h" | 24 #include "android_webview/native/permission/permission_request_handler_client.h" |
25 #include "base/android/jni_weak_ref.h" | 25 #include "base/android/jni_weak_ref.h" |
26 #include "base/android/scoped_java_ref.h" | 26 #include "base/android/scoped_java_ref.h" |
27 #include "base/callback_forward.h" | 27 #include "base/callback_forward.h" |
28 #include "base/macros.h" | 28 #include "base/macros.h" |
29 #include "content/public/browser/web_contents_observer.h" | 29 #include "content/public/browser/web_contents_observer.h" |
30 | 30 |
31 class SkBitmap; | 31 class SkBitmap; |
32 class TabContents; | 32 class TabContents; |
33 struct AwDrawGLInfo; | |
34 | 33 |
35 namespace content { | 34 namespace content { |
36 class WebContents; | 35 class WebContents; |
37 } | 36 } |
38 | 37 |
39 namespace android_webview { | 38 namespace android_webview { |
40 | 39 |
41 class AwContentsContainer; | 40 class AwContentsContainer; |
42 class AwContentsClientBridge; | 41 class AwContentsClientBridge; |
43 class AwGLFunctor; | 42 class AwGLFunctor; |
44 class AwPdfExporter; | 43 class AwPdfExporter; |
45 class AwWebContentsDelegate; | 44 class AwWebContentsDelegate; |
46 class HardwareRenderer; | |
47 class PermissionRequestHandler; | 45 class PermissionRequestHandler; |
48 | 46 |
49 // Native side of java-class of same name. | 47 // Native side of java-class of same name. |
50 // Provides the ownership of and access to browser components required for | 48 // Provides the ownership of and access to browser components required for |
51 // WebView functionality; analogous to chrome's TabContents, but with a | 49 // WebView functionality; analogous to chrome's TabContents, but with a |
52 // level of indirection provided by the AwContentsContainer abstraction. | 50 // level of indirection provided by the AwContentsContainer abstraction. |
53 // | 51 // |
54 // Object lifetime: | 52 // Object lifetime: |
55 // For most purposes the java and native objects can be considered to have | 53 // For most purposes the java and native objects can be considered to have |
56 // 1:1 lifetime and relationship. The exception is the java instance that | 54 // 1:1 lifetime and relationship. The exception is the java instance that |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 GLViewRendererManager::Key renderer_manager_key_; | 371 GLViewRendererManager::Key renderer_manager_key_; |
374 | 372 |
375 DISALLOW_COPY_AND_ASSIGN(AwContents); | 373 DISALLOW_COPY_AND_ASSIGN(AwContents); |
376 }; | 374 }; |
377 | 375 |
378 bool RegisterAwContents(JNIEnv* env); | 376 bool RegisterAwContents(JNIEnv* env); |
379 | 377 |
380 } // namespace android_webview | 378 } // namespace android_webview |
381 | 379 |
382 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 380 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |