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

Side by Side Diff: components/test_runner/mock_content_settings_client.h

Issue 2278303002: Remove the allow-displaying-mixed-content setting from Blink. (Closed)
Patch Set: Fixed missign deprecated preference registration. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/web/WebContentSettingsClient.h" 9 #include "third_party/WebKit/public/web/WebContentSettingsClient.h"
10 10
(...skipping 11 matching lines...) Expand all
22 ~MockContentSettingsClient() override; 22 ~MockContentSettingsClient() override;
23 23
24 // blink::WebContentSettingsClient: 24 // blink::WebContentSettingsClient:
25 bool allowImage(bool enabled_per_settings, 25 bool allowImage(bool enabled_per_settings,
26 const blink::WebURL& image_url) override; 26 const blink::WebURL& image_url) override;
27 bool allowScript(bool enabled_per_settings) override; 27 bool allowScript(bool enabled_per_settings) override;
28 bool allowScriptFromSource(bool enabled_per_settings, 28 bool allowScriptFromSource(bool enabled_per_settings,
29 const blink::WebURL& script_url) override; 29 const blink::WebURL& script_url) override;
30 bool allowStorage(bool local) override; 30 bool allowStorage(bool local) override;
31 bool allowPlugins(bool enabled_per_settings) override; 31 bool allowPlugins(bool enabled_per_settings) override;
32 bool allowDisplayingInsecureContent(bool enabled_per_settings,
33 const blink::WebURL& url) override;
34 bool allowRunningInsecureContent(bool enabled_per_settings, 32 bool allowRunningInsecureContent(bool enabled_per_settings,
35 const blink::WebSecurityOrigin& context, 33 const blink::WebSecurityOrigin& context,
36 const blink::WebURL& url) override; 34 const blink::WebURL& url) override;
37 bool allowAutoplay(bool default_value) override; 35 bool allowAutoplay(bool default_value) override;
38 36
39 void SetDelegate(WebTestDelegate* delegate); 37 void SetDelegate(WebTestDelegate* delegate);
40 38
41 private: 39 private:
42 WebTestDelegate* delegate_; 40 WebTestDelegate* delegate_;
43 41
44 LayoutTestRuntimeFlags* flags_; 42 LayoutTestRuntimeFlags* flags_;
45 43
46 DISALLOW_COPY_AND_ASSIGN(MockContentSettingsClient); 44 DISALLOW_COPY_AND_ASSIGN(MockContentSettingsClient);
47 }; 45 };
48 46
49 } // namespace test_runner 47 } // namespace test_runner
50 48
51 #endif // COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_ 49 #endif // COMPONENTS_TEST_RUNNER_MOCK_CONTENT_SETTINGS_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/layout_test_runtime_flags.cc ('k') | components/test_runner/mock_content_settings_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698