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

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

Issue 2136223003: ResourceDispatcherHostDelegate::OnResponseStarted doesn't need IPC::Sender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 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_context.h"
13 #include "content/public/browser/resource_dispatcher_host_delegate.h" 13 #include "content/public/browser/resource_dispatcher_host_delegate.h"
14 14
15 namespace content { 15 namespace content {
16 class ResourceDispatcherHostLoginDelegate; 16 class ResourceDispatcherHostLoginDelegate;
17 class ResourceContext; 17 class ResourceContext;
18 struct ResourceResponse; 18 struct ResourceResponse;
19 } // namespace content 19 } // namespace content
20 20
21 namespace IPC {
22 class Sender;
23 } // namespace IPC
24
25 namespace android_webview { 21 namespace android_webview {
26 22
27 class IoThreadClientThrottle; 23 class IoThreadClientThrottle;
28 24
29 class AwResourceDispatcherHostDelegate 25 class AwResourceDispatcherHostDelegate
30 : public content::ResourceDispatcherHostDelegate { 26 : public content::ResourceDispatcherHostDelegate {
31 public: 27 public:
32 static void ResourceDispatcherHostCreated(); 28 static void ResourceDispatcherHostCreated();
33 29
34 // Overriden methods from ResourceDispatcherHostDelegate. 30 // Overriden methods from ResourceDispatcherHostDelegate.
(...skipping 18 matching lines...) Expand all
53 const GURL& url, 49 const GURL& url,
54 int child_id, 50 int child_id,
55 const content::ResourceRequestInfo::WebContentsGetter& 51 const content::ResourceRequestInfo::WebContentsGetter&
56 web_contents_getter, 52 web_contents_getter,
57 bool is_main_frame, 53 bool is_main_frame,
58 ui::PageTransition page_transition, 54 ui::PageTransition page_transition,
59 bool has_user_gesture, 55 bool has_user_gesture,
60 content::ResourceContext* resource_context) override; 56 content::ResourceContext* resource_context) override;
61 void OnResponseStarted(net::URLRequest* request, 57 void OnResponseStarted(net::URLRequest* request,
62 content::ResourceContext* resource_context, 58 content::ResourceContext* resource_context,
63 content::ResourceResponse* response, 59 content::ResourceResponse* response) override;
64 IPC::Sender* sender) override;
65 60
66 void OnRequestRedirected(const GURL& redirect_url, 61 void OnRequestRedirected(const GURL& redirect_url,
67 net::URLRequest* request, 62 net::URLRequest* request,
68 content::ResourceContext* resource_context, 63 content::ResourceContext* resource_context,
69 content::ResourceResponse* response) override; 64 content::ResourceResponse* response) override;
70 65
71 void RequestComplete(net::URLRequest* request) override; 66 void RequestComplete(net::URLRequest* request) override;
72 67
73 void RemovePendingThrottleOnIoThread(IoThreadClientThrottle* throttle); 68 void RemovePendingThrottleOnIoThread(IoThreadClientThrottle* throttle);
74 69
(...skipping 25 matching lines...) Expand all
100 95
101 // Only accessed on the IO thread. 96 // Only accessed on the IO thread.
102 PendingThrottleMap pending_throttles_; 97 PendingThrottleMap pending_throttles_;
103 98
104 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); 99 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate);
105 }; 100 };
106 101
107 } // namespace android_webview 102 } // namespace android_webview
108 103
109 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ 104 #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