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

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

Issue 11265013: [Android] Use resource throttle instead of HandleExternalProtocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android webview compilation error (adjust header). Created 8 years, 1 month 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 | Annotate | Revision Log
« 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 "content/public/browser/resource_dispatcher_host_delegate.h" 8 #include "content/public/browser/resource_dispatcher_host_delegate.h"
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 20 matching lines...) Expand all
31 bool is_continuation_of_transferred_request, 31 bool is_continuation_of_transferred_request,
32 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; 32 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
33 33
34 virtual bool AcceptAuthRequest(net::URLRequest* request, 34 virtual bool AcceptAuthRequest(net::URLRequest* request,
35 net::AuthChallengeInfo* auth_info) OVERRIDE; 35 net::AuthChallengeInfo* auth_info) OVERRIDE;
36 36
37 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 37 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
38 net::AuthChallengeInfo* auth_info, 38 net::AuthChallengeInfo* auth_info,
39 net::URLRequest* request) OVERRIDE; 39 net::URLRequest* request) OVERRIDE;
40 40
41 virtual void HandleExternalProtocol(const GURL& url, 41 virtual bool HandleExternalProtocol(const GURL& url,
42 int child_id, 42 int child_id,
43 int route_id) OVERRIDE; 43 int route_id) OVERRIDE;
44 44
45 private: 45 private:
46 friend struct base::DefaultLazyInstanceTraits< 46 friend struct base::DefaultLazyInstanceTraits<
47 AwResourceDispatcherHostDelegate>; 47 AwResourceDispatcherHostDelegate>;
48 AwResourceDispatcherHostDelegate(); 48 AwResourceDispatcherHostDelegate();
49 virtual ~AwResourceDispatcherHostDelegate(); 49 virtual ~AwResourceDispatcherHostDelegate();
50 void SetOnlyAllowLoadFromCache(net::URLRequest* request); 50 void SetOnlyAllowLoadFromCache(net::URLRequest* request);
51 51
52 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); 52 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate);
53 }; 53 };
54 54
55 } // namespace android_webview 55 } // namespace android_webview
56 56
57 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ 57 #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