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 CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "content/browser/web_contents/web_contents_impl.h" |
12 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
13 #include "content/public/common/frame_navigate_params.h" | 14 #include "content/public/common/frame_navigate_params.h" |
14 #include "content/browser/web_contents/web_contents_impl.h" | 15 #include "url/gurl.h" |
15 #include "googleurl/src/gurl.h" | |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class RenderViewHost; | 19 class RenderViewHost; |
20 class WebContents; | 20 class WebContents; |
21 | 21 |
22 // Extends WebContentsObserver for providing a public Java API for some of the | 22 // Extends WebContentsObserver for providing a public Java API for some of the |
23 // the calls it receives. | 23 // the calls it receives. |
24 class WebContentsObserverAndroid : public WebContentsObserver { | 24 class WebContentsObserverAndroid : public WebContentsObserver { |
25 public: | 25 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 JavaObjectWeakGlobalRef weak_java_observer_; | 80 JavaObjectWeakGlobalRef weak_java_observer_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 82 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
83 }; | 83 }; |
84 | 84 |
85 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 85 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
86 } // namespace content | 86 } // namespace content |
87 | 87 |
88 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 88 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
OLD | NEW |