OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 net::URLRequest* request) override; | 54 net::URLRequest* request) override; |
55 bool HandleExternalProtocol(const GURL& url, | 55 bool HandleExternalProtocol(const GURL& url, |
56 int child_id, | 56 int child_id, |
57 int route_id, | 57 int route_id, |
58 bool is_main_frame, | 58 bool is_main_frame, |
59 ui::PageTransition page_transition, | 59 ui::PageTransition page_transition, |
60 bool has_user_gesture) override; | 60 bool has_user_gesture) override; |
61 bool ShouldForceDownloadResource(const GURL& url, | 61 bool ShouldForceDownloadResource(const GURL& url, |
62 const std::string& mime_type) override; | 62 const std::string& mime_type) override; |
63 bool ShouldInterceptResourceAsStream(net::URLRequest* request, | 63 bool ShouldInterceptResourceAsStream(net::URLRequest* request, |
| 64 const base::FilePath& plugin_path, |
64 const std::string& mime_type, | 65 const std::string& mime_type, |
65 GURL* origin, | 66 GURL* origin, |
66 std::string* payload) override; | 67 std::string* payload) override; |
67 void OnStreamCreated(net::URLRequest* request, | 68 void OnStreamCreated(net::URLRequest* request, |
68 scoped_ptr<content::StreamInfo> stream) override; | 69 scoped_ptr<content::StreamInfo> stream) override; |
69 void OnResponseStarted(net::URLRequest* request, | 70 void OnResponseStarted(net::URLRequest* request, |
70 content::ResourceContext* resource_context, | 71 content::ResourceContext* resource_context, |
71 content::ResourceResponse* response, | 72 content::ResourceResponse* response, |
72 IPC::Sender* sender) override; | 73 IPC::Sender* sender) override; |
73 void OnRequestRedirected(const GURL& redirect_url, | 74 void OnRequestRedirected(const GURL& redirect_url, |
(...skipping 25 matching lines...) Expand all Loading... |
99 scoped_refptr<SafeBrowsingService> safe_browsing_; | 100 scoped_refptr<SafeBrowsingService> safe_browsing_; |
100 #if defined(ENABLE_EXTENSIONS) | 101 #if defined(ENABLE_EXTENSIONS) |
101 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 102 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
102 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 103 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
103 #endif | 104 #endif |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 106 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
106 }; | 107 }; |
107 | 108 |
108 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 109 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |