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

Side by Side Diff: chrome/browser/renderer_host/chrome_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: Another variable set as const 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 (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 CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 56 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
57 net::AuthChallengeInfo* auth_info, 57 net::AuthChallengeInfo* auth_info,
58 net::URLRequest* request) override; 58 net::URLRequest* request) override;
59 bool HandleExternalProtocol( 59 bool HandleExternalProtocol(
60 const GURL& url, 60 const GURL& url,
61 int child_id, 61 int child_id,
62 const content::ResourceRequestInfo::WebContentsGetter& 62 const content::ResourceRequestInfo::WebContentsGetter&
63 web_contents_getter, 63 web_contents_getter,
64 bool is_main_frame, 64 bool is_main_frame,
65 ui::PageTransition page_transition, 65 ui::PageTransition page_transition,
66 bool has_user_gesture) override; 66 bool has_user_gesture,
67 bool is_whitelisted) override;
67 bool ShouldForceDownloadResource(const GURL& url, 68 bool ShouldForceDownloadResource(const GURL& url,
68 const std::string& mime_type) override; 69 const std::string& mime_type) override;
69 bool ShouldInterceptResourceAsStream(net::URLRequest* request, 70 bool ShouldInterceptResourceAsStream(net::URLRequest* request,
70 const base::FilePath& plugin_path, 71 const base::FilePath& plugin_path,
71 const std::string& mime_type, 72 const std::string& mime_type,
72 GURL* origin, 73 GURL* origin,
73 std::string* payload) override; 74 std::string* payload) override;
74 void OnStreamCreated(net::URLRequest* request, 75 void OnStreamCreated(net::URLRequest* request,
75 scoped_ptr<content::StreamInfo> stream) override; 76 scoped_ptr<content::StreamInfo> stream) override;
76 void OnResponseStarted(net::URLRequest* request, 77 void OnResponseStarted(net::URLRequest* request,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; 110 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_;
110 #if defined(ENABLE_EXTENSIONS) 111 #if defined(ENABLE_EXTENSIONS)
111 scoped_refptr<extensions::UserScriptListener> user_script_listener_; 112 scoped_refptr<extensions::UserScriptListener> user_script_listener_;
112 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; 113 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_;
113 #endif 114 #endif
114 115
115 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 116 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
116 }; 117 };
117 118
118 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 119 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698