| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_SEARCH_INSTANT_LOADER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual void SwapTabContents(content::WebContents* old_contents, | 98 virtual void SwapTabContents(content::WebContents* old_contents, |
| 99 content::WebContents* new_contents) OVERRIDE; | 99 content::WebContents* new_contents) OVERRIDE; |
| 100 | 100 |
| 101 // Overridden from content::WebContentsDelegate: | 101 // Overridden from content::WebContentsDelegate: |
| 102 virtual bool ShouldSuppressDialogs() OVERRIDE; | 102 virtual bool ShouldSuppressDialogs() OVERRIDE; |
| 103 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; | 103 virtual bool ShouldFocusPageAfterCrash() OVERRIDE; |
| 104 virtual void LostCapture() OVERRIDE; | 104 virtual void LostCapture() OVERRIDE; |
| 105 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 105 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
| 106 virtual bool CanDownload(content::RenderViewHost* render_view_host, | 106 virtual bool CanDownload(content::RenderViewHost* render_view_host, |
| 107 int request_id, | 107 int request_id, |
| 108 bool has_auth, |
| 108 const std::string& request_method) OVERRIDE; | 109 const std::string& request_method) OVERRIDE; |
| 109 virtual void HandleMouseDown() OVERRIDE; | 110 virtual void HandleMouseDown() OVERRIDE; |
| 110 virtual void HandleMouseUp() OVERRIDE; | 111 virtual void HandleMouseUp() OVERRIDE; |
| 111 virtual void HandlePointerActivate() OVERRIDE; | 112 virtual void HandlePointerActivate() OVERRIDE; |
| 112 virtual void HandleGestureEnd() OVERRIDE; | 113 virtual void HandleGestureEnd() OVERRIDE; |
| 113 virtual void DragEnded() OVERRIDE; | 114 virtual void DragEnded() OVERRIDE; |
| 114 virtual bool OnGoToEntryOffset(int offset) OVERRIDE; | 115 virtual bool OnGoToEntryOffset(int offset) OVERRIDE; |
| 115 virtual content::WebContents* OpenURLFromTab( | 116 virtual content::WebContents* OpenURLFromTab( |
| 116 content::WebContents* source, | 117 content::WebContents* source, |
| 117 const content::OpenURLParams& params) OVERRIDE; | 118 const content::OpenURLParams& params) OVERRIDE; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 128 // Used to mark when the page is stale. | 129 // Used to mark when the page is stale. |
| 129 base::Timer stale_page_timer_; | 130 base::Timer stale_page_timer_; |
| 130 | 131 |
| 131 // Used to get notifications about renderers. | 132 // Used to get notifications about renderers. |
| 132 content::NotificationRegistrar registrar_; | 133 content::NotificationRegistrar registrar_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 135 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ | 138 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_LOADER_H_ |
| OLD | NEW |