| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool IsRenderViewLive() const; | 69 bool IsRenderViewLive() const; |
| 70 | 70 |
| 71 // Initializes our RenderViewHost by creating its RenderView and navigating | 71 // Initializes our RenderViewHost by creating its RenderView and navigating |
| 72 // to this host's url. Uses host_view for the RenderViewHost's view (can be | 72 // to this host's url. Uses host_view for the RenderViewHost's view (can be |
| 73 // NULL). | 73 // NULL). |
| 74 void CreateRenderView(RenderWidgetHostView* host_view); | 74 void CreateRenderView(RenderWidgetHostView* host_view); |
| 75 | 75 |
| 76 // Sets |url_| and navigates |render_view_host_|. | 76 // Sets |url_| and navigates |render_view_host_|. |
| 77 void NavigateToURL(const GURL& url); | 77 void NavigateToURL(const GURL& url); |
| 78 | 78 |
| 79 // Insert the CSS for a toolstrip. |
| 80 void InsertCssIfToolstrip(); |
| 81 |
| 79 // RenderViewHostDelegate implementation. | 82 // RenderViewHostDelegate implementation. |
| 80 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 83 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
| 81 virtual const GURL& GetURL() const { return url_; } | 84 virtual const GURL& GetURL() const { return url_; } |
| 82 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 85 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
| 83 virtual ViewType::Type GetRenderViewType() const; | 86 virtual ViewType::Type GetRenderViewType() const; |
| 84 virtual int GetBrowserWindowID() const; | 87 virtual int GetBrowserWindowID() const; |
| 85 virtual void RenderViewGone(RenderViewHost* render_view_host); | 88 virtual void RenderViewGone(RenderViewHost* render_view_host); |
| 86 virtual void DidNavigate(RenderViewHost* render_view_host, | 89 virtual void DidNavigate(RenderViewHost* render_view_host, |
| 87 const ViewHostMsg_FrameNavigate_Params& params); | 90 const ViewHostMsg_FrameNavigate_Params& params); |
| 88 virtual void DidStopLoading(RenderViewHost* render_view_host); | 91 virtual void DidStopLoading(RenderViewHost* render_view_host); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 180 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 178 | 181 |
| 179 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, | 182 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, |
| 180 // others are not hostd by ExtensionHost. | 183 // others are not hostd by ExtensionHost. |
| 181 ViewType::Type extension_host_type_; | 184 ViewType::Type extension_host_type_; |
| 182 | 185 |
| 183 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 186 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 184 }; | 187 }; |
| 185 | 188 |
| 186 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 189 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |