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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Tell the renderer not to draw scrollbars on windows smaller than | 109 // Tell the renderer not to draw scrollbars on windows smaller than |
110 // |size_limit| in both width and height. | 110 // |size_limit| in both width and height. |
111 void DisableScrollbarsForSmallWindows(const gfx::Size& size_limit); | 111 void DisableScrollbarsForSmallWindows(const gfx::Size& size_limit); |
112 | 112 |
113 // RenderViewHostDelegate implementation. | 113 // RenderViewHostDelegate implementation. |
114 virtual bool OnMessageReceived(const IPC::Message& message); | 114 virtual bool OnMessageReceived(const IPC::Message& message); |
115 virtual const GURL& GetURL() const; | 115 virtual const GURL& GetURL() const; |
116 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 116 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
117 virtual ViewType::Type GetRenderViewType() const; | 117 virtual ViewType::Type GetRenderViewType() const; |
118 virtual int GetBrowserWindowID() const; | |
119 virtual void RenderViewGone(RenderViewHost* render_view_host, | 118 virtual void RenderViewGone(RenderViewHost* render_view_host, |
120 base::TerminationStatus status, | 119 base::TerminationStatus status, |
121 int error_code); | 120 int error_code); |
122 virtual void DidNavigate(RenderViewHost* render_view_host, | 121 virtual void DidNavigate(RenderViewHost* render_view_host, |
123 const ViewHostMsg_FrameNavigate_Params& params); | 122 const ViewHostMsg_FrameNavigate_Params& params); |
124 virtual void DidStopLoading(); | 123 virtual void DidStopLoading(); |
125 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); | 124 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); |
126 virtual void DocumentOnLoadCompletedInMainFrame( | 125 virtual void DocumentOnLoadCompletedInMainFrame( |
127 RenderViewHost* render_view_host, | 126 RenderViewHost* render_view_host, |
128 int32 page_id); | 127 int32 page_id); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 // Used to measure how long it's been since the host was created. | 287 // Used to measure how long it's been since the host was created. |
289 PerfTimer since_created_; | 288 PerfTimer since_created_; |
290 | 289 |
291 // FileSelectHelper, lazily created. | 290 // FileSelectHelper, lazily created. |
292 scoped_ptr<FileSelectHelper> file_select_helper_; | 291 scoped_ptr<FileSelectHelper> file_select_helper_; |
293 | 292 |
294 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 293 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
295 }; | 294 }; |
296 | 295 |
297 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 296 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |