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

Unified Diff: chrome/common/renderer_preferences.h

Issue 123001: Move renderer_preferences.h from chrome/browser into chrome/common. We (Closed)
Patch Set: include deps Created 11 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/renderer_preferences.h
diff --git a/chrome/common/renderer_preferences.h b/chrome/common/renderer_preferences.h
new file mode 100644
index 0000000000000000000000000000000000000000..2f808acb52f5b9dafc9b8c4838966fa02d2e9cf5
--- /dev/null
+++ b/chrome/common/renderer_preferences.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// A struct for managing browser's settings that apply to the renderer or its
+// webview. These differ from WebPreferences since they apply to Chromium's
+// glue layer rather than applying to just WebKit.
+//
+// Adding new values to this class probably involves updating
+// common/render_messages.h, browser/browser.cc, etc.
+
+#ifndef CHROME_COMMON_RENDERER_PREFERENCES_H_
+#define CHROME_COMMON_RENDERER_PREFERENCES_H_
+
+struct RendererPreferences {
+ // Whether the renderer's current browser context accept drops from the OS
+ // that result in navigations away from the current page.
+ bool can_accept_load_drops;
+
+ RendererPreferences()
+ : can_accept_load_drops(true) {
+ }
+};
+
+#endif // CHROME_COMMON_RENDERER_PREFERENCES_H_
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698