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

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

Issue 1806853005: Store and use last base URL between DidStart / DidStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void SetToBaseURLForDataURLIfNeeded(std::string* url); 76 void SetToBaseURLForDataURLIfNeeded(std::string* url);
77 77
78 void DidFailLoadInternal(bool is_provisional_load, 78 void DidFailLoadInternal(bool is_provisional_load,
79 bool is_main_frame, 79 bool is_main_frame,
80 int error_code, 80 int error_code,
81 const base::string16& description, 81 const base::string16& description,
82 const GURL& url, 82 const GURL& url,
83 bool was_ignored_by_handler); 83 bool was_ignored_by_handler);
84 84
85 base::android::ScopedJavaGlobalRef<jobject> java_observer_; 85 base::android::ScopedJavaGlobalRef<jobject> java_observer_;
86 GURL base_url_of_last_started_data_url_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy); 88 DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy);
88 }; 89 };
89 90
90 bool RegisterWebContentsObserverProxy(JNIEnv* env); 91 bool RegisterWebContentsObserverProxy(JNIEnv* env);
91 } // namespace content 92 } // namespace content
92 93
93 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_ 94 #endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698