Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: content/browser/android/web_contents_observer_android.h

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 18 matching lines...) Expand all
29 WebContents* web_contents); 29 WebContents* web_contents);
30 virtual ~WebContentsObserverAndroid(); 30 virtual ~WebContentsObserverAndroid();
31 31
32 void Destroy(JNIEnv* env, jobject obj); 32 void Destroy(JNIEnv* env, jobject obj);
33 33
34 private: 34 private:
35 virtual void RenderProcessGone( 35 virtual void RenderProcessGone(
36 base::TerminationStatus termination_status) OVERRIDE; 36 base::TerminationStatus termination_status) OVERRIDE;
37 virtual void DidStartLoading(RenderViewHost* render_view_host) OVERRIDE; 37 virtual void DidStartLoading(RenderViewHost* render_view_host) OVERRIDE;
38 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; 38 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE;
39 virtual void DidDeferAfterResponseStarted() OVERRIDE;
39 virtual void DidFailProvisionalLoad( 40 virtual void DidFailProvisionalLoad(
40 int64 frame_id, 41 int64 frame_id,
41 const base::string16& frame_unique_name, 42 const base::string16& frame_unique_name,
42 bool is_main_frame, 43 bool is_main_frame,
43 const GURL& validated_url, 44 const GURL& validated_url,
44 int error_code, 45 int error_code,
45 const base::string16& error_description, 46 const base::string16& error_description,
46 RenderViewHost* render_view_host) OVERRIDE; 47 RenderViewHost* render_view_host) OVERRIDE;
47 virtual void DidFailLoad(int64 frame_id, 48 virtual void DidFailLoad(int64 frame_id,
48 const GURL& validated_url, 49 const GURL& validated_url,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 JavaObjectWeakGlobalRef weak_java_observer_; 91 JavaObjectWeakGlobalRef weak_java_observer_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid); 93 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid);
93 }; 94 };
94 95
95 bool RegisterWebContentsObserverAndroid(JNIEnv* env); 96 bool RegisterWebContentsObserverAndroid(JNIEnv* env);
96 } // namespace content 97 } // namespace content
97 98
98 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_ 99 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698