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

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

Issue 8801012: Add support for content::Referrer to prerender (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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 22 matching lines...) Expand all
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, 37 int child_id,
38 int route_id, 38 int route_id,
39 const std::string& method, 39 const std::string& method,
40 const GURL& url, 40 const GURL& url,
41 ResourceType::Type resource_type, 41 ResourceType::Type resource_type,
42 const content::ResourceContext& resource_context, 42 const content::ResourceContext& resource_context,
43 const GURL& referrer) OVERRIDE; 43 const content::Referrer& referrer) OVERRIDE;
44 virtual ResourceHandler* RequestBeginning( 44 virtual ResourceHandler* RequestBeginning(
45 ResourceHandler* handler, 45 ResourceHandler* handler,
46 net::URLRequest* request, 46 net::URLRequest* request,
47 const content::ResourceContext& resource_context, 47 const content::ResourceContext& resource_context,
48 bool is_subresource, 48 bool is_subresource,
49 int child_id, 49 int child_id,
50 int route_id, 50 int route_id,
51 bool is_continuation_of_transferred_request) OVERRIDE; 51 bool is_continuation_of_transferred_request) OVERRIDE;
52 virtual ResourceHandler* DownloadStarting( 52 virtual ResourceHandler* DownloadStarting(
53 ResourceHandler* handler, 53 ResourceHandler* handler,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 ResourceDispatcherHost* resource_dispatcher_host_; 89 ResourceDispatcherHost* resource_dispatcher_host_;
90 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; 90 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
91 scoped_refptr<SafeBrowsingService> safe_browsing_; 91 scoped_refptr<SafeBrowsingService> safe_browsing_;
92 prerender::PrerenderTracker* prerender_tracker_; 92 prerender::PrerenderTracker* prerender_tracker_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 94 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
95 }; 95 };
96 96
97 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 97 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698