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

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

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 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
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/public/browser/resource_context.h"
12 #include "content/public/browser/resource_dispatcher_host_delegate.h" 13 #include "content/public/browser/resource_dispatcher_host_delegate.h"
13 14
14 namespace content { 15 namespace content {
15 class ResourceDispatcherHostLoginDelegate; 16 class ResourceDispatcherHostLoginDelegate;
17 class ResourceContext;
16 struct ResourceResponse; 18 struct ResourceResponse;
17 } // namespace content 19 } // namespace content
18 20
19 namespace IPC { 21 namespace IPC {
20 class Sender; 22 class Sender;
21 } // namespace IPC 23 } // namespace IPC
22 24
23 namespace android_webview { 25 namespace android_webview {
24 26
25 class IoThreadClientThrottle; 27 class IoThreadClientThrottle;
(...skipping 22 matching lines...) Expand all
48 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 50 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
49 net::AuthChallengeInfo* auth_info, 51 net::AuthChallengeInfo* auth_info,
50 net::URLRequest* request) override; 52 net::URLRequest* request) override;
51 bool HandleExternalProtocol( 53 bool HandleExternalProtocol(
52 const GURL& url, 54 const GURL& url,
53 int child_id, 55 int child_id,
54 const content::ResourceRequestInfo::WebContentsGetter& 56 const content::ResourceRequestInfo::WebContentsGetter&
55 web_contents_getter, 57 web_contents_getter,
56 bool is_main_frame, 58 bool is_main_frame,
57 ui::PageTransition page_transition, 59 ui::PageTransition page_transition,
58 bool has_user_gesture) override; 60 bool has_user_gesture,
61 content::ResourceContext* resource_context) override;
59 void OnResponseStarted(net::URLRequest* request, 62 void OnResponseStarted(net::URLRequest* request,
60 content::ResourceContext* resource_context, 63 content::ResourceContext* resource_context,
61 content::ResourceResponse* response, 64 content::ResourceResponse* response,
62 IPC::Sender* sender) override; 65 IPC::Sender* sender) override;
63 66
64 void OnRequestRedirected(const GURL& redirect_url, 67 void OnRequestRedirected(const GURL& redirect_url,
65 net::URLRequest* request, 68 net::URLRequest* request,
66 content::ResourceContext* resource_context, 69 content::ResourceContext* resource_context,
67 content::ResourceResponse* response) override; 70 content::ResourceResponse* response) override;
68 71
(...skipping 29 matching lines...) Expand all
98 101
99 // Only accessed on the IO thread. 102 // Only accessed on the IO thread.
100 PendingThrottleMap pending_throttles_; 103 PendingThrottleMap pending_throttles_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); 105 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate);
103 }; 106 };
104 107
105 } // namespace android_webview 108 } // namespace android_webview
106 109
107 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ 110 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698