| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 const GURL& frame_url, | 125 const GURL& frame_url, |
| 126 const int flags, | 126 const int flags, |
| 127 bool* did_suppress_message, | 127 bool* did_suppress_message, |
| 128 string16* prompt_field); | 128 string16* prompt_field); |
| 129 virtual void OnRenderViewGone(int status, int exit_code); | 129 virtual void OnRenderViewGone(int status, int exit_code); |
| 130 | 130 |
| 131 // TabContentsObserver implementation. | 131 // TabContentsObserver implementation. |
| 132 virtual void DidStopLoading() OVERRIDE; | 132 virtual void DidStopLoading() OVERRIDE; |
| 133 | 133 |
| 134 // NotificationObserver | 134 // NotificationObserver |
| 135 virtual void Observe(NotificationType type, | 135 virtual void Observe(int type, |
| 136 const NotificationSource& source, | 136 const NotificationSource& source, |
| 137 const NotificationDetails& details) OVERRIDE; | 137 const NotificationDetails& details) OVERRIDE; |
| 138 | 138 |
| 139 // DownloadTabHelperDelegate implementation. | 139 // DownloadTabHelperDelegate implementation. |
| 140 virtual bool CanDownload(int request_id) OVERRIDE; | 140 virtual bool CanDownload(int request_id) OVERRIDE; |
| 141 virtual void OnStartDownload(DownloadItem* download, | 141 virtual void OnStartDownload(DownloadItem* download, |
| 142 TabContentsWrapper* tab) OVERRIDE; | 142 TabContentsWrapper* tab) OVERRIDE; |
| 143 | 143 |
| 144 // Adds an alias URL, for one of the many redirections. If the URL can not | 144 // Adds an alias URL, for one of the many redirections. If the URL can not |
| 145 // be prerendered - for example, it's an ftp URL - |this| will be destroyed | 145 // be prerendered - for example, it's an ftp URL - |this| will be destroyed |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 // Offset by which to offset prerendered pages | 285 // Offset by which to offset prerendered pages |
| 286 static const int32 kPrerenderPageIdOffset = 10; | 286 static const int32 kPrerenderPageIdOffset = 10; |
| 287 | 287 |
| 288 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 288 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 } // namespace prerender | 291 } // namespace prerender |
| 292 | 292 |
| 293 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 293 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |