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

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

Issue 1001003004: [Android WebView] Implement a better OnReceivedError callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restored empty line Created 5 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void OnResponseStarted(net::URLRequest* request, 53 void OnResponseStarted(net::URLRequest* request,
54 content::ResourceContext* resource_context, 54 content::ResourceContext* resource_context,
55 content::ResourceResponse* response, 55 content::ResourceResponse* response,
56 IPC::Sender* sender) override; 56 IPC::Sender* sender) override;
57 57
58 void OnRequestRedirected(const GURL& redirect_url, 58 void OnRequestRedirected(const GURL& redirect_url,
59 net::URLRequest* request, 59 net::URLRequest* request,
60 content::ResourceContext* resource_context, 60 content::ResourceContext* resource_context,
61 content::ResourceResponse* response) override; 61 content::ResourceResponse* response) override;
62 62
63 void RequestComplete(net::URLRequest* request) override;
64
63 void RemovePendingThrottleOnIoThread(IoThreadClientThrottle* throttle); 65 void RemovePendingThrottleOnIoThread(IoThreadClientThrottle* throttle);
64 66
65 static void OnIoThreadClientReady(int new_render_process_id, 67 static void OnIoThreadClientReady(int new_render_process_id,
66 int new_render_frame_id); 68 int new_render_frame_id);
67 static void AddPendingThrottle(int render_process_id, 69 static void AddPendingThrottle(int render_process_id,
68 int render_frame_id, 70 int render_frame_id,
69 IoThreadClientThrottle* pending_throttle); 71 IoThreadClientThrottle* pending_throttle);
70 72
71 private: 73 private:
72 friend struct base::DefaultLazyInstanceTraits< 74 friend struct base::DefaultLazyInstanceTraits<
(...skipping 17 matching lines...) Expand all
90 92
91 // Only accessed on the IO thread. 93 // Only accessed on the IO thread.
92 PendingThrottleMap pending_throttles_; 94 PendingThrottleMap pending_throttles_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); 96 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate);
95 }; 97 };
96 98
97 } // namespace android_webview 99 } // namespace android_webview
98 100
99 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ 101 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698