| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
| 13 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/supports_user_data.h" | 17 #include "base/supports_user_data.h" |
| 18 #include "content/browser/frame_host/navigation_controller_android.h" | 18 #include "content/browser/frame_host/navigation_controller_android.h" |
| 19 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 19 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 | 21 |
| 22 class GURL; |
| 23 |
| 22 namespace content { | 24 namespace content { |
| 23 | 25 |
| 24 class WebContentsImpl; | 26 class WebContentsImpl; |
| 25 | 27 |
| 26 // Android wrapper around WebContents that provides safer passage from java and | 28 // Android wrapper around WebContents that provides safer passage from java and |
| 27 // back to native and provides java with a means of communicating with its | 29 // back to native and provides java with a means of communicating with its |
| 28 // native counterpart. | 30 // native counterpart. |
| 29 class CONTENT_EXPORT WebContentsAndroid | 31 class CONTENT_EXPORT WebContentsAndroid |
| 30 : public base::SupportsUserData::Data { | 32 : public base::SupportsUserData::Data { |
| 31 public: | 33 public: |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 base::android::ScopedJavaGlobalRef<jobject> obj_; | 237 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 236 | 238 |
| 237 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 239 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 238 | 240 |
| 239 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 241 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 240 }; | 242 }; |
| 241 | 243 |
| 242 } // namespace content | 244 } // namespace content |
| 243 | 245 |
| 244 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 246 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |