| OLD | NEW |
| 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_PRERENDER_PRERENDER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 const gfx::Size& size); | 133 const gfx::Size& size); |
| 134 | 134 |
| 135 std::unique_ptr<PrerenderHandle> AddPrerenderFromExternalRequest( | 135 std::unique_ptr<PrerenderHandle> AddPrerenderFromExternalRequest( |
| 136 const GURL& url, | 136 const GURL& url, |
| 137 const content::Referrer& referrer, | 137 const content::Referrer& referrer, |
| 138 content::SessionStorageNamespace* session_storage_namespace, | 138 content::SessionStorageNamespace* session_storage_namespace, |
| 139 const gfx::Rect& bounds); | 139 const gfx::Rect& bounds); |
| 140 | 140 |
| 141 // Adds a prerender from an external request that will prerender even on | 141 // Adds a prerender from an external request that will prerender even on |
| 142 // cellular networks as long as the user setting for prerendering is ON. | 142 // cellular networks as long as the user setting for prerendering is ON. |
| 143 std::unique_ptr<PrerenderHandle> AddPrerenderOnCellularFromExternalRequest( | 143 std::unique_ptr<PrerenderHandle> AddForcedPrerenderFromExternalRequest( |
| 144 const GURL& url, | 144 const GURL& url, |
| 145 const content::Referrer& referrer, | 145 const content::Referrer& referrer, |
| 146 content::SessionStorageNamespace* session_storage_namespace, | 146 content::SessionStorageNamespace* session_storage_namespace, |
| 147 const gfx::Rect& bounds); | 147 const gfx::Rect& bounds); |
| 148 | 148 |
| 149 // Adds a prerender for Instant Search |url| if valid. The | 149 // Adds a prerender for Instant Search |url| if valid. The |
| 150 // |session_storage_namespace| matches the namespace of the active tab at the | 150 // |session_storage_namespace| matches the namespace of the active tab at the |
| 151 // time the prerender is generated. Returns a PrerenderHandle or NULL. | 151 // time the prerender is generated. Returns a PrerenderHandle or NULL. |
| 152 std::unique_ptr<PrerenderHandle> AddPrerenderForInstant( | 152 std::unique_ptr<PrerenderHandle> AddPrerenderForInstant( |
| 153 const GURL& url, | 153 const GURL& url, |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 std::vector<std::unique_ptr<PrerenderManagerObserver>> observers_; | 649 std::vector<std::unique_ptr<PrerenderManagerObserver>> observers_; |
| 650 | 650 |
| 651 base::WeakPtrFactory<PrerenderManager> weak_factory_; | 651 base::WeakPtrFactory<PrerenderManager> weak_factory_; |
| 652 | 652 |
| 653 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 653 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
| 654 }; | 654 }; |
| 655 | 655 |
| 656 } // namespace prerender | 656 } // namespace prerender |
| 657 | 657 |
| 658 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 658 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| OLD | NEW |