| 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_EXTENSIONS_EXTENSION_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void InsertInfobarCSS(); | 109 void InsertInfobarCSS(); |
| 110 | 110 |
| 111 // Tell the renderer not to draw scrollbars on windows smaller than | 111 // Tell the renderer not to draw scrollbars on windows smaller than |
| 112 // |size_limit| in both width and height. | 112 // |size_limit| in both width and height. |
| 113 void DisableScrollbarsForSmallWindows(const gfx::Size& size_limit); | 113 void DisableScrollbarsForSmallWindows(const gfx::Size& size_limit); |
| 114 | 114 |
| 115 // RenderViewHostDelegate implementation. | 115 // RenderViewHostDelegate implementation. |
| 116 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 116 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 117 virtual const GURL& GetURL() const OVERRIDE; | 117 virtual const GURL& GetURL() const OVERRIDE; |
| 118 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 118 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 119 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; |
| 119 virtual content::ViewType GetRenderViewType() const OVERRIDE; | 120 virtual content::ViewType GetRenderViewType() const OVERRIDE; |
| 120 virtual void RenderViewGone(RenderViewHost* render_view_host, | 121 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 121 base::TerminationStatus status, | 122 base::TerminationStatus status, |
| 122 int error_code) OVERRIDE; | 123 int error_code) OVERRIDE; |
| 123 virtual void DidNavigate( | 124 virtual void DidNavigate( |
| 124 RenderViewHost* render_view_host, | 125 RenderViewHost* render_view_host, |
| 125 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 126 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; |
| 126 virtual void DidStopLoading() OVERRIDE; | 127 virtual void DidStopLoading() OVERRIDE; |
| 127 virtual void DocumentAvailableInMainFrame( | 128 virtual void DocumentAvailableInMainFrame( |
| 128 RenderViewHost* render_view_host) OVERRIDE; | 129 RenderViewHost* render_view_host) OVERRIDE; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // The relevant TabContents associated with this ExtensionHost, if any. | 286 // The relevant TabContents associated with this ExtensionHost, if any. |
| 286 TabContents* associated_tab_contents_; | 287 TabContents* associated_tab_contents_; |
| 287 | 288 |
| 288 // Used to measure how long it's been since the host was created. | 289 // Used to measure how long it's been since the host was created. |
| 289 PerfTimer since_created_; | 290 PerfTimer since_created_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 292 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 295 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |