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

Unified Diff: content/shell/renderer/test_runner/web_content_settings.h

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 7 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: content/shell/renderer/test_runner/web_content_settings.h
diff --git a/content/shell/renderer/test_runner/web_content_settings.h b/content/shell/renderer/test_runner/web_content_settings.h
deleted file mode 100644
index 1a150297939412c86ce6c5da816797693deae85e..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/web_content_settings.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2014 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_CONTENT_SETTINGS_H_
-#define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_CONTENT_SETTINGS_H_
-
-#include "base/macros.h"
-#include "third_party/WebKit/public/web/WebContentSettingsClient.h"
-
-namespace content {
-
-class WebTestDelegate;
-
-class WebContentSettings : public blink::WebContentSettingsClient {
- public:
- WebContentSettings();
- virtual ~WebContentSettings();
-
- // blink::WebContentSettingsClient:
- virtual bool allowImage(bool enabledPerSettings,
- const blink::WebURL& imageURL);
- virtual bool allowMedia(const blink::WebURL& mediaURL);
- virtual bool allowScriptFromSource(bool enabledPerSettings,
- const blink::WebURL& scriptURL);
- virtual bool allowStorage(bool local);
- virtual bool allowPlugins(bool enabledPerSettings);
- virtual bool allowDisplayingInsecureContent(bool enabledPerSettings,
- const blink::WebSecurityOrigin&,
- const blink::WebURL&);
- virtual bool allowRunningInsecureContent(bool enabledPerSettings,
- const blink::WebSecurityOrigin&,
- const blink::WebURL&);
-
- // Hooks to set the different policies.
- void SetImagesAllowed(bool);
- void SetMediaAllowed(bool);
- void SetScriptsAllowed(bool);
- void SetStorageAllowed(bool);
- void SetPluginsAllowed(bool);
- void SetDisplayingInsecureContentAllowed(bool);
- void SetRunningInsecureContentAllowed(bool);
-
- void SetDelegate(WebTestDelegate*);
- void SetDumpCallbacks(bool);
-
- // Resets the policy to allow everything, except for running insecure content.
- void Reset();
-
- private:
- WebTestDelegate* delegate_;
- bool dump_callbacks_;
-
- bool images_allowed_;
- bool media_allowed_;
- bool scripts_allowed_;
- bool storage_allowed_;
- bool plugins_allowed_;
- bool displaying_insecure_content_allowed_;
- bool running_insecure_content_allowed_;
-
- DISALLOW_COPY_AND_ASSIGN(WebContentSettings);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_CONTENT_SETTINGS_H_
« no previous file with comments | « content/shell/renderer/test_runner/web_ax_object_proxy.cc ('k') | content/shell/renderer/test_runner/web_content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698