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

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

Issue 8511080: Get rid of resource_messages.h include from chrome, since that's an internal detail of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 16 matching lines...) Expand all
27 // reference to it to avoid accessing g_browser_process. 27 // reference to it to avoid accessing g_browser_process.
28 // Both |resource_dispatcher_host| and |prerender_tracker| must outlive 28 // Both |resource_dispatcher_host| and |prerender_tracker| must outlive
29 // |this|. 29 // |this|.
30 ChromeResourceDispatcherHostDelegate( 30 ChromeResourceDispatcherHostDelegate(
31 ResourceDispatcherHost* resource_dispatcher_host, 31 ResourceDispatcherHost* resource_dispatcher_host,
32 prerender::PrerenderTracker* prerender_tracker); 32 prerender::PrerenderTracker* prerender_tracker);
33 virtual ~ChromeResourceDispatcherHostDelegate(); 33 virtual ~ChromeResourceDispatcherHostDelegate();
34 34
35 // ResourceDispatcherHostDelegate implementation. 35 // ResourceDispatcherHostDelegate implementation.
36 virtual bool ShouldBeginRequest( 36 virtual bool ShouldBeginRequest(
37 int child_id, int route_id, 37 int child_id,
38 const ResourceHostMsg_Request& request_data, 38 int route_id,
39 const std::string& method,
40 const GURL& url,
41 ResourceType::Type resource_type,
39 const content::ResourceContext& resource_context, 42 const content::ResourceContext& resource_context,
40 const GURL& referrer) OVERRIDE; 43 const GURL& referrer) OVERRIDE;
41 virtual ResourceHandler* RequestBeginning( 44 virtual ResourceHandler* RequestBeginning(
42 ResourceHandler* handler, 45 ResourceHandler* handler,
43 net::URLRequest* request, 46 net::URLRequest* request,
44 const content::ResourceContext& resource_context, 47 const content::ResourceContext& resource_context,
45 bool is_subresource, 48 bool is_subresource,
46 int child_id, 49 int child_id,
47 int route_id) OVERRIDE; 50 int route_id) OVERRIDE;
48 virtual ResourceHandler* DownloadStarting( 51 virtual ResourceHandler* DownloadStarting(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 87
85 ResourceDispatcherHost* resource_dispatcher_host_; 88 ResourceDispatcherHost* resource_dispatcher_host_;
86 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; 89 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
87 scoped_refptr<SafeBrowsingService> safe_browsing_; 90 scoped_refptr<SafeBrowsingService> safe_browsing_;
88 prerender::PrerenderTracker* prerender_tracker_; 91 prerender::PrerenderTracker* prerender_tracker_;
89 92
90 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 93 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
91 }; 94 };
92 95
93 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 96 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698