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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 24 matching lines...) Expand all
35 // |prerender_tracker| must outlive |this|. 35 // |prerender_tracker| must outlive |this|.
36 explicit ChromeResourceDispatcherHostDelegate( 36 explicit ChromeResourceDispatcherHostDelegate(
37 prerender::PrerenderTracker* prerender_tracker); 37 prerender::PrerenderTracker* prerender_tracker);
38 virtual ~ChromeResourceDispatcherHostDelegate(); 38 virtual ~ChromeResourceDispatcherHostDelegate();
39 39
40 // ResourceDispatcherHostDelegate implementation. 40 // ResourceDispatcherHostDelegate implementation.
41 virtual bool ShouldBeginRequest( 41 virtual bool ShouldBeginRequest(
42 const std::string& method, 42 const std::string& method,
43 const GURL& url, 43 const GURL& url,
44 content::ResourceType resource_type, 44 content::ResourceType resource_type,
45 content::ResourceContext* resource_context) OVERRIDE; 45 content::ResourceContext* resource_context) override;
46 virtual void RequestBeginning( 46 virtual void RequestBeginning(
47 net::URLRequest* request, 47 net::URLRequest* request,
48 content::ResourceContext* resource_context, 48 content::ResourceContext* resource_context,
49 content::AppCacheService* appcache_service, 49 content::AppCacheService* appcache_service,
50 content::ResourceType resource_type, 50 content::ResourceType resource_type,
51 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; 51 ScopedVector<content::ResourceThrottle>* throttles) override;
52 virtual void DownloadStarting( 52 virtual void DownloadStarting(
53 net::URLRequest* request, 53 net::URLRequest* request,
54 content::ResourceContext* resource_context, 54 content::ResourceContext* resource_context,
55 int child_id, 55 int child_id,
56 int route_id, 56 int route_id,
57 int request_id, 57 int request_id,
58 bool is_content_initiated, 58 bool is_content_initiated,
59 bool must_download, 59 bool must_download,
60 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; 60 ScopedVector<content::ResourceThrottle>* throttles) override;
61 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 61 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
62 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; 62 net::AuthChallengeInfo* auth_info, net::URLRequest* request) override;
63 virtual bool HandleExternalProtocol(const GURL& url, 63 virtual bool HandleExternalProtocol(const GURL& url,
64 int child_id, 64 int child_id,
65 int route_id) OVERRIDE; 65 int route_id) override;
66 virtual bool ShouldForceDownloadResource( 66 virtual bool ShouldForceDownloadResource(
67 const GURL& url, const std::string& mime_type) OVERRIDE; 67 const GURL& url, const std::string& mime_type) override;
68 virtual bool ShouldInterceptResourceAsStream( 68 virtual bool ShouldInterceptResourceAsStream(
69 net::URLRequest* request, 69 net::URLRequest* request,
70 const std::string& mime_type, 70 const std::string& mime_type,
71 GURL* origin, 71 GURL* origin,
72 std::string* payload) OVERRIDE; 72 std::string* payload) override;
73 virtual void OnStreamCreated( 73 virtual void OnStreamCreated(
74 net::URLRequest* request, 74 net::URLRequest* request,
75 scoped_ptr<content::StreamHandle> stream) OVERRIDE; 75 scoped_ptr<content::StreamHandle> stream) override;
76 virtual void OnResponseStarted( 76 virtual void OnResponseStarted(
77 net::URLRequest* request, 77 net::URLRequest* request,
78 content::ResourceContext* resource_context, 78 content::ResourceContext* resource_context,
79 content::ResourceResponse* response, 79 content::ResourceResponse* response,
80 IPC::Sender* sender) OVERRIDE; 80 IPC::Sender* sender) override;
81 virtual void OnRequestRedirected( 81 virtual void OnRequestRedirected(
82 const GURL& redirect_url, 82 const GURL& redirect_url,
83 net::URLRequest* request, 83 net::URLRequest* request,
84 content::ResourceContext* resource_context, 84 content::ResourceContext* resource_context,
85 content::ResourceResponse* response) OVERRIDE; 85 content::ResourceResponse* response) override;
86 virtual void RequestComplete(net::URLRequest* url_request) OVERRIDE; 86 virtual void RequestComplete(net::URLRequest* url_request) override;
87 87
88 // Called on the UI thread. Allows switching out the 88 // Called on the UI thread. Allows switching out the
89 // ExternalProtocolHandler::Delegate for testing code. 89 // ExternalProtocolHandler::Delegate for testing code.
90 static void SetExternalProtocolHandlerDelegateForTesting( 90 static void SetExternalProtocolHandlerDelegateForTesting(
91 ExternalProtocolHandler::Delegate* delegate); 91 ExternalProtocolHandler::Delegate* delegate);
92 92
93 private: 93 private:
94 #if defined(ENABLE_EXTENSIONS) 94 #if defined(ENABLE_EXTENSIONS)
95 struct StreamTargetInfo { 95 struct StreamTargetInfo {
96 std::string extension_id; 96 std::string extension_id;
(...skipping 20 matching lines...) Expand all
117 #if defined(ENABLE_EXTENSIONS) 117 #if defined(ENABLE_EXTENSIONS)
118 scoped_refptr<extensions::UserScriptListener> user_script_listener_; 118 scoped_refptr<extensions::UserScriptListener> user_script_listener_;
119 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; 119 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_;
120 #endif 120 #endif
121 prerender::PrerenderTracker* prerender_tracker_; 121 prerender::PrerenderTracker* prerender_tracker_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 123 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
124 }; 124 };
125 125
126 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 126 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698