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

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

Issue 1008913002: Remove RenderViewHost parameter from WebContentsObserver::Did{Start|Stop}Loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROXY_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ 6 #define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_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 14 matching lines...) Expand all
25 class WebContentsObserverProxy : public WebContentsObserver { 25 class WebContentsObserverProxy : public WebContentsObserver {
26 public: 26 public:
27 WebContentsObserverProxy(JNIEnv* env, jobject obj, WebContents* web_contents); 27 WebContentsObserverProxy(JNIEnv* env, jobject obj, WebContents* web_contents);
28 ~WebContentsObserverProxy() override; 28 ~WebContentsObserverProxy() override;
29 29
30 void Destroy(JNIEnv* env, jobject obj); 30 void Destroy(JNIEnv* env, jobject obj);
31 31
32 private: 32 private:
33 void RenderViewReady() override; 33 void RenderViewReady() override;
34 void RenderProcessGone(base::TerminationStatus termination_status) override; 34 void RenderProcessGone(base::TerminationStatus termination_status) override;
35 void DidStartLoading(RenderViewHost* render_view_host) override; 35 void DidStartLoading() override;
36 void DidStopLoading(RenderViewHost* render_view_host) override; 36 void DidStopLoading() override;
37 void DidFailProvisionalLoad(RenderFrameHost* render_frame_host, 37 void DidFailProvisionalLoad(RenderFrameHost* render_frame_host,
38 const GURL& validated_url, 38 const GURL& validated_url,
39 int error_code, 39 int error_code,
40 const base::string16& error_description) override; 40 const base::string16& error_description) override;
41 void DidFailLoad(RenderFrameHost* render_frame_host, 41 void DidFailLoad(RenderFrameHost* render_frame_host,
42 const GURL& validated_url, 42 const GURL& validated_url,
43 int error_code, 43 int error_code,
44 const base::string16& error_description) override; 44 const base::string16& error_description) override;
45 void DidNavigateMainFrame(const LoadCommittedDetails& details, 45 void DidNavigateMainFrame(const LoadCommittedDetails& details,
46 const FrameNavigateParams& params) override; 46 const FrameNavigateParams& params) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 JavaObjectWeakGlobalRef weak_java_observer_; 79 JavaObjectWeakGlobalRef weak_java_observer_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); 81 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy);
82 }; 82 };
83 83
84 bool RegisterWebContentsObserverProxy(JNIEnv* env); 84 bool RegisterWebContentsObserverProxy(JNIEnv* env);
85 } // namespace content 85 } // namespace content
86 86
87 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ 87 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698