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

Unified Diff: chrome/browser/plugins/plugin_filter_utils.h

Issue 2208463002: [HBD] Implement site-origin exceptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hbd_disableplugincache
Patch Set: Rebase Created 4 years, 4 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
Index: chrome/browser/plugins/plugin_filter_utils.h
diff --git a/chrome/browser/plugins/plugin_filter_utils.h b/chrome/browser/plugins/plugin_filter_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..e019fa74bbb7001013a0f445068f74841c7bb197
--- /dev/null
+++ b/chrome/browser/plugins/plugin_filter_utils.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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.
+
+#ifndef CHROME_BROWSER_PLUGINS_PLUGIN_FILTER_UTILS_H_
+#define CHROME_BROWSER_PLUGINS_PLUGIN_FILTER_UTILS_H_
+
+#include "components/content_settings/core/common/content_settings.h"
+
+class GURL;
+class HostContentSettingsMap;
+
+namespace content {
+struct WebPluginInfo;
+}
+
+// |is_default| and |is_managed| may be nullptr. In that case, they aren't set.
+void GetPluginContentSetting(
+ const HostContentSettingsMap* host_content_settings_map,
+ const content::WebPluginInfo& plugin,
+ const GURL& policy_url,
+ const GURL& plugin_url,
+ const std::string& resource,
+ ContentSetting* setting,
+ bool* is_default,
+ bool* is_managed);
+
+#endif // CHROME_BROWSER_PLUGINS_PLUGIN_FILTER_UTILS_H_
« no previous file with comments | « chrome/browser/plugins/chrome_plugin_service_filter.cc ('k') | chrome/browser/plugins/plugin_filter_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698