OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 class RenderViewHostDelegate; | 23 class RenderViewHostDelegate; |
24 class RenderWidgetHost; | 24 class RenderWidgetHost; |
25 class RenderWidgetHostView; | 25 class RenderWidgetHostView; |
26 class SiteInstance; | 26 class SiteInstance; |
27 class TabContents; | 27 class TabContents; |
28 | 28 |
29 // Provides helper methods that provide common implementations of some | 29 // Provides helper methods that provide common implementations of some |
30 // RenderViewHostDelegate::View methods. | 30 // RenderViewHostDelegate::View methods. |
31 class RenderViewHostDelegateViewHelper { | 31 class RenderViewHostDelegateViewHelper { |
32 public: | 32 public: |
33 RenderViewHostDelegateViewHelper() {} | 33 RenderViewHostDelegateViewHelper(); |
34 virtual ~RenderViewHostDelegateViewHelper() {} | 34 virtual ~RenderViewHostDelegateViewHelper(); |
35 | 35 |
36 // Creates a new renderer for window.open. This will either be a | 36 // Creates a new renderer for window.open. This will either be a |
37 // BackgroundContents (if the window_container_type == | 37 // BackgroundContents (if the window_container_type == |
38 // WINDOW_CONTAINER_TYPE_BACKGROUND and permissions allow) or a TabContents. | 38 // WINDOW_CONTAINER_TYPE_BACKGROUND and permissions allow) or a TabContents. |
39 // If a TabContents is created, it is returned. Otherwise NULL is returned. | 39 // If a TabContents is created, it is returned. Otherwise NULL is returned. |
40 virtual TabContents* CreateNewWindow( | 40 virtual TabContents* CreateNewWindow( |
41 int route_id, | 41 int route_id, |
42 Profile* profile, | 42 Profile* profile, |
43 SiteInstance* site, | 43 SiteInstance* site, |
44 DOMUITypeID domui_type, | 44 DOMUITypeID domui_type, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const std::string& value); | 104 const std::string& value); |
105 static void ClearInspectorSettings(Profile* profile); | 105 static void ClearInspectorSettings(Profile* profile); |
106 | 106 |
107 private: | 107 private: |
108 RenderViewHostDelegateHelper(); | 108 RenderViewHostDelegateHelper(); |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); | 110 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 113 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
OLD | NEW |