| 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_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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 content::NotificationRegistrar registrar_; | 118 content::NotificationRegistrar registrar_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateViewHelper); | 120 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateViewHelper); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 | 123 |
| 124 // Provides helper methods that provide common implementations of some | 124 // Provides helper methods that provide common implementations of some |
| 125 // RenderViewHostDelegate methods. | 125 // RenderViewHostDelegate methods. |
| 126 class RenderViewHostDelegateHelper { | 126 class RenderViewHostDelegateHelper { |
| 127 public: | 127 public: |
| 128 static WebPreferences GetWebkitPrefs(content::BrowserContext* browser_context, | 128 static WebPreferences GetWebkitPrefs(RenderViewHost* rvh); |
| 129 bool is_web_ui); | |
| 130 | 129 |
| 131 static void UpdateInspectorSetting(content::BrowserContext* browser_context, | 130 static void UpdateInspectorSetting(content::BrowserContext* browser_context, |
| 132 const std::string& key, | 131 const std::string& key, |
| 133 const std::string& value); | 132 const std::string& value); |
| 134 static void ClearInspectorSettings(content::BrowserContext* browser_context); | 133 static void ClearInspectorSettings(content::BrowserContext* browser_context); |
| 135 | 134 |
| 136 private: | 135 private: |
| 137 RenderViewHostDelegateHelper(); | 136 RenderViewHostDelegateHelper(); |
| 138 | 137 |
| 139 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); | 138 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); |
| 140 }; | 139 }; |
| 141 | 140 |
| 142 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 141 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
| OLD | NEW |