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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void DidFailLoad(int64 frame_id, | 42 virtual void DidFailLoad(int64 frame_id, |
43 const GURL& validated_url, | 43 const GURL& validated_url, |
44 bool is_main_frame, | 44 bool is_main_frame, |
45 int error_code, | 45 int error_code, |
46 const string16& error_description, | 46 const string16& error_description, |
47 RenderViewHost* render_view_host) OVERRIDE; | 47 RenderViewHost* render_view_host) OVERRIDE; |
48 virtual void DidNavigateMainFrame(const LoadCommittedDetails& details, | 48 virtual void DidNavigateMainFrame(const LoadCommittedDetails& details, |
49 const FrameNavigateParams& params) OVERRIDE; | 49 const FrameNavigateParams& params) OVERRIDE; |
50 virtual void DidNavigateAnyFrame(const LoadCommittedDetails& details, | 50 virtual void DidNavigateAnyFrame(const LoadCommittedDetails& details, |
51 const FrameNavigateParams& params) OVERRIDE; | 51 const FrameNavigateParams& params) OVERRIDE; |
| 52 virtual void DidStartProvisionalLoadForFrame( |
| 53 int64 frame_id, |
| 54 int64 parent_frame_id, |
| 55 bool is_main_frame, |
| 56 const GURL& validated_url, |
| 57 bool is_error_page, |
| 58 bool is_iframe_srcdoc, |
| 59 RenderViewHost* render_view_host) OVERRIDE; |
52 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; | 60 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; |
53 | 61 |
54 void DidFailLoadInternal(bool is_provisional_load, | 62 void DidFailLoadInternal(bool is_provisional_load, |
55 bool is_main_frame, | 63 bool is_main_frame, |
56 int error_code, | 64 int error_code, |
57 const string16& description, | 65 const string16& description, |
58 const GURL& url); | 66 const GURL& url); |
59 | 67 |
60 JavaObjectWeakGlobalRef weak_java_observer_; | 68 JavaObjectWeakGlobalRef weak_java_observer_; |
61 | 69 |
62 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); | 70 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); |
63 }; | 71 }; |
64 | 72 |
65 bool RegisterWebContentsObserverAndroid(JNIEnv* env); | 73 bool RegisterWebContentsObserverAndroid(JNIEnv* env); |
66 } // namespace content | 74 } // namespace content |
67 | 75 |
68 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ | 76 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ |
OLD | NEW |