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

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

Issue 322713002: test_runner: Migrate WebPermissions to our Chromium C++ style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 6 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 | « content/content_shell.gypi ('k') | content/shell/renderer/test_runner/WebPermissions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/WebPermissions.h
diff --git a/content/shell/renderer/test_runner/WebPermissions.h b/content/shell/renderer/test_runner/WebPermissions.h
deleted file mode 100644
index 09656f56cc7b41cad992f92921df9fd1c66e4ce0..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/WebPermissions.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2013 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_WEBPERMISSIONS_H_
-#define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBPERMISSIONS_H_
-
-#include "base/macros.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
-#include "third_party/WebKit/public/web/WebPermissionClient.h"
-
-namespace content {
-
-class WebTestDelegate;
-
-class WebPermissions : public blink::WebPermissionClient {
-public:
- WebPermissions();
- virtual ~WebPermissions();
-
- // Override WebPermissionClient methods.
- 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);
-
- // Resets the policy to allow everything, except for running insecure content.
- void reset();
-
- void setDelegate(WebTestDelegate*);
- void setDumpCallbacks(bool);
-
-private:
- WebTestDelegate* m_delegate;
- bool m_dumpCallbacks;
-
- bool m_imagesAllowed;
- bool m_mediaAllowed;
- bool m_scriptsAllowed;
- bool m_storageAllowed;
- bool m_pluginsAllowed;
- bool m_displayingInsecureContentAllowed;
- bool m_runningInsecureContentAllowed;
-
- DISALLOW_COPY_AND_ASSIGN(WebPermissions);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBPERMISSIONS_H_
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/renderer/test_runner/WebPermissions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698