| 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_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/prerender/prerender_final_status.h" | 16 #include "chrome/browser/prerender/prerender_final_status.h" |
| 17 #include "chrome/browser/prerender/prerender_origin.h" | 17 #include "chrome/browser/prerender/prerender_origin.h" |
| 18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
| 19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
| 20 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
| 21 #include "content/public/common/referrer.h" | 21 #include "content/public/common/referrer.h" |
| 22 #include "ui/gfx/size.h" | 22 #include "ui/gfx/size.h" |
| 23 | 23 |
| 24 class Profile; | 24 class Profile; |
| 25 class TabContents; | 25 class TabContents; |
| 26 struct FaviconURL; | 26 |
| 27 | 27 |
| 28 namespace base { | 28 namespace base { |
| 29 class ProcessMetrics; | 29 class ProcessMetrics; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 struct FaviconURL; |
| 33 class RenderViewHost; | 34 class RenderViewHost; |
| 34 class SessionStorageNamespace; | 35 class SessionStorageNamespace; |
| 35 class WebContents; | 36 class WebContents; |
| 36 } | 37 } |
| 37 | 38 |
| 38 namespace history { | 39 namespace history { |
| 39 struct HistoryAddPageArgs; | 40 struct HistoryAddPageArgs; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace prerender { | 43 namespace prerender { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 299 |
| 299 private: | 300 private: |
| 300 class TabContentsDelegateImpl; | 301 class TabContentsDelegateImpl; |
| 301 | 302 |
| 302 // Needs to be able to call the constructor. | 303 // Needs to be able to call the constructor. |
| 303 friend class PrerenderContentsFactoryImpl; | 304 friend class PrerenderContentsFactoryImpl; |
| 304 | 305 |
| 305 friend class PrerenderRenderViewHostObserver; | 306 friend class PrerenderRenderViewHostObserver; |
| 306 | 307 |
| 307 // Message handlers. | 308 // Message handlers. |
| 308 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); | 309 void OnUpdateFaviconURL(int32 page_id, |
| 310 const std::vector<content::FaviconURL>& urls); |
| 309 | 311 |
| 310 // Returns the RenderViewHost Delegate for this prerender. | 312 // Returns the RenderViewHost Delegate for this prerender. |
| 311 content::WebContents* GetWebContents(); | 313 content::WebContents* GetWebContents(); |
| 312 | 314 |
| 313 // Returns the ProcessMetrics for the render process, if it exists. | 315 // Returns the ProcessMetrics for the render process, if it exists. |
| 314 base::ProcessMetrics* MaybeGetProcessMetrics(); | 316 base::ProcessMetrics* MaybeGetProcessMetrics(); |
| 315 | 317 |
| 316 // The prerender manager owning this object. | 318 // The prerender manager owning this object. |
| 317 PrerenderManager* prerender_manager_; | 319 PrerenderManager* prerender_manager_; |
| 318 | 320 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 403 |
| 402 // Caches pages to be added to the history. | 404 // Caches pages to be added to the history. |
| 403 AddPageVector add_page_vector_; | 405 AddPageVector add_page_vector_; |
| 404 | 406 |
| 405 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 407 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 406 }; | 408 }; |
| 407 | 409 |
| 408 } // namespace prerender | 410 } // namespace prerender |
| 409 | 411 |
| 410 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 412 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |