OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_SEARCH_INSTANT_NTP_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 const base::Closure& on_stale_callback); | 39 const base::Closure& on_stale_callback); |
40 | 40 |
41 // Releases the WebContents for the Instant page. This should be called when | 41 // Releases the WebContents for the Instant page. This should be called when |
42 // the page is about to be committed. | 42 // the page is about to be committed. |
43 scoped_ptr<content::WebContents> ReleaseContents(); | 43 scoped_ptr<content::WebContents> ReleaseContents(); |
44 | 44 |
45 private: | 45 private: |
46 // Overridden from content::WebContentsObserver: | 46 // Overridden from content::WebContentsObserver: |
47 virtual void RenderViewCreated( | 47 virtual void RenderViewCreated( |
48 content::RenderViewHost* render_view_host) OVERRIDE; | 48 content::RenderViewHost* render_view_host) OVERRIDE; |
49 virtual void RenderViewGone( | 49 virtual void RenderProcessGone( |
50 base::TerminationStatus status) OVERRIDE; | 50 base::TerminationStatus status) OVERRIDE; |
51 | 51 |
52 // Overriden from InstantLoader::Delegate: | 52 // Overriden from InstantLoader::Delegate: |
53 virtual void OnSwappedContents() OVERRIDE; | 53 virtual void OnSwappedContents() OVERRIDE; |
54 virtual void OnFocus() OVERRIDE; | 54 virtual void OnFocus() OVERRIDE; |
55 virtual void OnMouseDown() OVERRIDE; | 55 virtual void OnMouseDown() OVERRIDE; |
56 virtual void OnMouseUp() OVERRIDE; | 56 virtual void OnMouseUp() OVERRIDE; |
57 virtual content::WebContents* OpenURLFromTab( | 57 virtual content::WebContents* OpenURLFromTab( |
58 content::WebContents* source, | 58 content::WebContents* source, |
59 const content::OpenURLParams& params) OVERRIDE; | 59 const content::OpenURLParams& params) OVERRIDE; |
60 virtual void LoadCompletedMainFrame() OVERRIDE; | 60 virtual void LoadCompletedMainFrame() OVERRIDE; |
61 | 61 |
62 InstantLoader loader_; | 62 InstantLoader loader_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(InstantNTP); | 64 DISALLOW_COPY_AND_ASSIGN(InstantNTP); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_H_ | 67 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_H_ |
OLD | NEW |