| 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 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/prerender/prerender_contents.h" | 22 #include "chrome/browser/prerender/prerender_contents.h" |
| 23 #include "chrome/browser/prerender/prerender_final_status.h" | 23 #include "chrome/browser/prerender/prerender_final_status.h" |
| 24 #include "chrome/browser/prerender/prerender_histograms.h" | 24 #include "chrome/browser/prerender/prerender_histograms.h" |
| 25 #include "chrome/browser/prerender/prerender_origin.h" | 25 #include "chrome/browser/prerender/prerender_origin.h" |
| 26 #include "components/keyed_service/core/keyed_service.h" | 26 #include "components/keyed_service/core/keyed_service.h" |
| 27 #include "content/public/browser/notification_observer.h" | 27 #include "content/public/browser/notification_observer.h" |
| 28 #include "content/public/browser/notification_registrar.h" | 28 #include "content/public/browser/notification_registrar.h" |
| 29 #include "content/public/browser/render_process_host_observer.h" | 29 #include "content/public/browser/render_process_host_observer.h" |
| 30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
| 31 | 31 |
| 32 class InstantSearchPrerendererTest; | |
| 33 class Profile; | 32 class Profile; |
| 34 struct ChromeCookieDetails; | |
| 35 | 33 |
| 36 namespace base { | 34 namespace base { |
| 37 class DictionaryValue; | 35 class DictionaryValue; |
| 38 class ListValue; | 36 class ListValue; |
| 39 class SimpleTestClock; | 37 class SimpleTestClock; |
| 40 class SimpleTestTickClock; | 38 class SimpleTestTickClock; |
| 41 class TickClock; | 39 class TickClock; |
| 42 } | 40 } |
| 43 | 41 |
| 44 namespace chrome { | 42 namespace chrome { |
| 45 struct NavigateParams; | 43 struct NavigateParams; |
| 46 } | 44 } |
| 47 | 45 |
| 48 namespace chrome_browser_net { | 46 namespace chrome_browser_net { |
| 49 enum class NetworkPredictionStatus; | 47 enum class NetworkPredictionStatus; |
| 50 } | 48 } |
| 51 | 49 |
| 52 namespace content { | 50 namespace content { |
| 53 class WebContents; | 51 class WebContents; |
| 54 } | 52 } |
| 55 | 53 |
| 56 namespace gfx { | 54 namespace gfx { |
| 57 class Rect; | 55 class Rect; |
| 58 class Size; | 56 class Size; |
| 59 } | 57 } |
| 60 | 58 |
| 61 namespace offline_pages { | |
| 62 class PrerenderAdapterTest; | |
| 63 } | |
| 64 | |
| 65 namespace prerender { | 59 namespace prerender { |
| 66 | 60 |
| 67 namespace test_utils { | 61 namespace test_utils { |
| 68 class PrerenderInProcessBrowserTest; | 62 class PrerenderInProcessBrowserTest; |
| 69 } | 63 } |
| 70 | 64 |
| 71 class PrerenderHandle; | 65 class PrerenderHandle; |
| 72 class PrerenderHistory; | 66 class PrerenderHistory; |
| 73 class PrerenderLocalPredictor; | |
| 74 | 67 |
| 75 // PrerenderManager is responsible for initiating and keeping prerendered | 68 // PrerenderManager is responsible for initiating and keeping prerendered |
| 76 // views of web pages. All methods must be called on the UI thread unless | 69 // views of web pages. All methods must be called on the UI thread unless |
| 77 // indicated otherwise. | 70 // indicated otherwise. |
| 78 class PrerenderManager : public content::NotificationObserver, | 71 class PrerenderManager : public content::NotificationObserver, |
| 79 public content::RenderProcessHostObserver, | 72 public content::RenderProcessHostObserver, |
| 80 public KeyedService, | 73 public KeyedService, |
| 81 public MediaCaptureDevicesDispatcher::Observer { | 74 public MediaCaptureDevicesDispatcher::Observer { |
| 82 public: | 75 public: |
| 83 enum PrerenderManagerMode { | 76 enum PrerenderManagerMode { |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 std::unique_ptr<base::TickClock> tick_clock_; | 594 std::unique_ptr<base::TickClock> tick_clock_; |
| 602 | 595 |
| 603 base::WeakPtrFactory<PrerenderManager> weak_factory_; | 596 base::WeakPtrFactory<PrerenderManager> weak_factory_; |
| 604 | 597 |
| 605 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 598 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
| 606 }; | 599 }; |
| 607 | 600 |
| 608 } // namespace prerender | 601 } // namespace prerender |
| 609 | 602 |
| 610 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 603 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| OLD | NEW |