Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.h

Issue 8403024: Set extension-related webkit preferences in a common location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove is_web_ui param Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/background_contents.cc ('k') | chrome/browser/tab_contents/render_view_host_delegate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698