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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.h

Issue 2425423004: Move NewDownload out of AwContentsIoThreadClientImpl to AwContentsClientBridge (Closed)
Patch Set: changed "even if" to "unless" Created 4 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 virtual void RunBeforeUnloadDialog( 64 virtual void RunBeforeUnloadDialog(
65 const GURL& origin_url, 65 const GURL& origin_url,
66 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 66 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
67 = 0; 67 = 0;
68 68
69 virtual bool ShouldOverrideUrlLoading(const base::string16& url, 69 virtual bool ShouldOverrideUrlLoading(const base::string16& url,
70 bool has_user_gesture, 70 bool has_user_gesture,
71 bool is_redirect, 71 bool is_redirect,
72 bool is_main_frame) = 0; 72 bool is_main_frame) = 0;
73
74 virtual void NewDownload(const GURL& url,
75 const std::string& user_agent,
76 const std::string& content_disposition,
77 const std::string& mime_type,
78 int64_t content_length) = 0;
73 }; 79 };
74 80
75 } // namespace android_webview 81 } // namespace android_webview
76 82
77 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 83 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698