OLD | NEW |
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_PRERENDER_PRERENDER_RESOURCE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_HANDLER_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_HANDLER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 virtual ~PrerenderResourceHandler(); | 85 virtual ~PrerenderResourceHandler(); |
86 | 86 |
87 void RunCallbackFromUIThread(const GURL& url, | 87 void RunCallbackFromUIThread(const GURL& url, |
88 const std::vector<GURL>& alias_urls, | 88 const std::vector<GURL>& alias_urls, |
89 const GURL& referrer); | 89 const GURL& referrer); |
90 void StartPrerender(const GURL& url, | 90 void StartPrerender(const GURL& url, |
91 const std::vector<GURL>& alias_urls, | 91 const std::vector<GURL>& alias_urls, |
92 const GURL& referrer); | 92 const GURL& referrer); |
93 | 93 |
94 // The set of URLs that are aliases to the URL to be prerendered, | 94 // The set of URLs that are aliases to the URL to be prerendered, |
95 // as a result of redirects, including the final URL. | 95 // as a result of redirects. |
96 std::vector<GURL> alias_urls_; | 96 std::vector<GURL> alias_urls_; |
97 GURL url_; | 97 GURL url_; |
98 scoped_refptr<ResourceHandler> next_handler_; | 98 scoped_refptr<ResourceHandler> next_handler_; |
99 scoped_refptr<PrerenderManager> prerender_manager_; | 99 scoped_refptr<PrerenderManager> prerender_manager_; |
100 scoped_ptr<PrerenderCallback> prerender_callback_; | 100 scoped_ptr<PrerenderCallback> prerender_callback_; |
101 | 101 |
102 // Used to obtain the referrer, but only after any redirections occur, as they | 102 // Used to obtain the referrer, but only after any redirections occur, as they |
103 // can result in the referrer being cleared. | 103 // can result in the referrer being cleared. |
104 const net::URLRequest& request_; | 104 const net::URLRequest& request_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(PrerenderResourceHandler); | 106 DISALLOW_COPY_AND_ASSIGN(PrerenderResourceHandler); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace prerender | 109 } // namespace prerender |
110 | 110 |
111 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_HANDLER_H_ | 111 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_HANDLER_H_ |
OLD | NEW |