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

Side by Side Diff: android_webview/native/aw_web_contents_delegate.h

Issue 1405333005: Defer loads on WebView popup windows until webcontents delegate attached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit. Created 5 years, 1 month 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 ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "components/web_contents_delegate_android/web_contents_delegate_android .h" 10 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void WebContentsCreated(content::WebContents* source_contents, 44 void WebContentsCreated(content::WebContents* source_contents,
45 int opener_render_frame_id, 45 int opener_render_frame_id,
46 const std::string& frame_name, 46 const std::string& frame_name,
47 const GURL& target_url, 47 const GURL& target_url,
48 content::WebContents* new_contents) override; 48 content::WebContents* new_contents) override;
49 49
50 void CloseContents(content::WebContents* source) override; 50 void CloseContents(content::WebContents* source) override;
51 void ActivateContents(content::WebContents* contents) override; 51 void ActivateContents(content::WebContents* contents) override;
52 void LoadingStateChanged(content::WebContents* source, 52 void LoadingStateChanged(content::WebContents* source,
53 bool to_different_document) override; 53 bool to_different_document) override;
54 bool ShouldResumeRequestsForCreatedWindow() override;
54 void RequestMediaAccessPermission( 55 void RequestMediaAccessPermission(
55 content::WebContents* web_contents, 56 content::WebContents* web_contents,
56 const content::MediaStreamRequest& request, 57 const content::MediaStreamRequest& request,
57 const content::MediaResponseCallback& callback) override; 58 const content::MediaResponseCallback& callback) override;
58 void EnterFullscreenModeForTab(content::WebContents* web_contents, 59 void EnterFullscreenModeForTab(content::WebContents* web_contents,
59 const GURL& origin) override; 60 const GURL& origin) override;
60 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; 61 void ExitFullscreenModeForTab(content::WebContents* web_contents) override;
61 bool IsFullscreenForTabOrPending( 62 bool IsFullscreenForTabOrPending(
62 const content::WebContents* web_contents) const override; 63 const content::WebContents* web_contents) const override;
63 64
64 private: 65 private:
65 bool is_fullscreen_; 66 bool is_fullscreen_;
66 }; 67 };
67 68
68 bool RegisterAwWebContentsDelegate(JNIEnv* env); 69 bool RegisterAwWebContentsDelegate(JNIEnv* env);
69 70
70 } // namespace android_webview 71 } // namespace android_webview
71 72
72 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ 73 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698