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

Side by Side Diff: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h

Issue 1091253008: Fix an issue that external protocol in subframes are not handled on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and fix test Created 5 years, 7 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 ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H _ 5 #ifndef ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H _
6 #define ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H _ 6 #define ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H _
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 int route_id, 42 int route_id,
43 int request_id, 43 int request_id,
44 bool is_content_initiated, 44 bool is_content_initiated,
45 bool must_download, 45 bool must_download,
46 ScopedVector<content::ResourceThrottle>* throttles) override; 46 ScopedVector<content::ResourceThrottle>* throttles) override;
47 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 47 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
48 net::AuthChallengeInfo* auth_info, 48 net::AuthChallengeInfo* auth_info,
49 net::URLRequest* request) override; 49 net::URLRequest* request) override;
50 bool HandleExternalProtocol(const GURL& url, 50 bool HandleExternalProtocol(const GURL& url,
51 int child_id, 51 int child_id,
52 int route_id) override; 52 int route_id,
53 bool is_main_frame,
54 ui::PageTransition page_transition,
55 bool has_user_gesture) override;
53 void OnResponseStarted(net::URLRequest* request, 56 void OnResponseStarted(net::URLRequest* request,
54 content::ResourceContext* resource_context, 57 content::ResourceContext* resource_context,
55 content::ResourceResponse* response, 58 content::ResourceResponse* response,
56 IPC::Sender* sender) override; 59 IPC::Sender* sender) override;
57 60
58 void OnRequestRedirected(const GURL& redirect_url, 61 void OnRequestRedirected(const GURL& redirect_url,
59 net::URLRequest* request, 62 net::URLRequest* request,
60 content::ResourceContext* resource_context, 63 content::ResourceContext* resource_context,
61 content::ResourceResponse* response) override; 64 content::ResourceResponse* response) override;
62 65
(...skipping 29 matching lines...) Expand all
92 95
93 // Only accessed on the IO thread. 96 // Only accessed on the IO thread.
94 PendingThrottleMap pending_throttles_; 97 PendingThrottleMap pending_throttles_;
95 98
96 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); 99 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate);
97 }; 100 };
98 101
99 } // namespace android_webview 102 } // namespace android_webview
100 103
101 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ 104 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698