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

Side by Side Diff: content/shell/renderer/test_runner/WebPermissions.h

Issue 222973003: Conversion of content_shell target to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some TODOs Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBPERMISSIONS_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBPERMISSIONS_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBPERMISSIONS_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBPERMISSIONS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/WebKit/public/web/WebPermissionClient.h" 9 #include "third_party/WebKit/public/web/WebPermissionClient.h"
10 10
11 namespace WebTestRunner { 11 namespace WebTestRunner {
12 12
13 class WebTestDelegate; 13 class WebTestDelegate;
14 14
15 class WebPermissions : public blink::WebPermissionClient { 15 class WebPermissions : public blink::WebPermissionClient {
16 public: 16 public:
17 WebPermissions(); 17 WebPermissions();
18 virtual ~WebPermissions(); 18 virtual ~WebPermissions();
19 19
20 // Override WebPermissionClient methods. 20 // Override WebPermissionClient methods.
21 // TODO(jam): remove all these methods after Blink rolls. 21 // TODO(jam): remove all these methods after Blink rolls.
22 virtual bool allowImage(blink::WebFrame*, bool enabledPerSettings, const bli nk::WebURL& imageURL); 22 virtual bool allowImage(blink::WebLocalFrame*,
23 virtual bool allowScriptFromSource(blink::WebFrame*, bool enabledPerSettings , const blink::WebURL& scriptURL); 23 bool enabledPerSettings,
24 virtual bool allowStorage(blink::WebFrame*, bool local); 24 const blink::WebURL& imageURL);
25 virtual bool allowPlugins(blink::WebFrame*, bool enabledPerSettings); 25 virtual bool allowScriptFromSource(blink::WebLocalFrame*,
26 virtual bool allowDisplayingInsecureContent(blink::WebFrame*, bool enabledPe rSettings, const blink::WebSecurityOrigin&, const blink::WebURL&); 26 bool enabledPerSettings,
27 virtual bool allowRunningInsecureContent(blink::WebFrame*, bool enabledPerSe ttings, const blink::WebSecurityOrigin&, const blink::WebURL&); 27 const blink::WebURL& scriptURL);
28 virtual bool allowStorage(blink::WebLocalFrame*, bool local);
29 virtual bool allowPlugins(blink::WebLocalFrame*, bool enabledPerSettings);
30 virtual bool allowDisplayingInsecureContent(blink::WebLocalFrame*,
31 bool enabledPerSettings,
32 const blink::WebSecurityOrigin&,
33 const blink::WebURL&);
34 virtual bool allowRunningInsecureContent(blink::WebLocalFrame*,
35 bool enabledPerSettings,
36 const blink::WebSecurityOrigin&,
37 const blink::WebURL&);
28 38
29 virtual bool allowImage(bool enabledPerSettings, const blink::WebURL& imageU RL); 39 virtual bool allowImage(bool enabledPerSettings, const blink::WebURL& imageU RL);
30 virtual bool allowScriptFromSource(bool enabledPerSettings, const blink::Web URL& scriptURL); 40 virtual bool allowScriptFromSource(bool enabledPerSettings, const blink::Web URL& scriptURL);
31 virtual bool allowStorage(bool local); 41 virtual bool allowStorage(bool local);
32 virtual bool allowPlugins(bool enabledPerSettings); 42 virtual bool allowPlugins(bool enabledPerSettings);
33 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const b link::WebSecurityOrigin&, const blink::WebURL&); 43 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const b link::WebSecurityOrigin&, const blink::WebURL&);
34 virtual bool allowRunningInsecureContent(bool enabledPerSettings, const blin k::WebSecurityOrigin&, const blink::WebURL&); 44 virtual bool allowRunningInsecureContent(bool enabledPerSettings, const blin k::WebSecurityOrigin&, const blink::WebURL&);
35 45
36 // Hooks to set the different policies. 46 // Hooks to set the different policies.
37 void setImagesAllowed(bool); 47 void setImagesAllowed(bool);
(...skipping 19 matching lines...) Expand all
57 bool m_pluginsAllowed; 67 bool m_pluginsAllowed;
58 bool m_displayingInsecureContentAllowed; 68 bool m_displayingInsecureContentAllowed;
59 bool m_runningInsecureContentAllowed; 69 bool m_runningInsecureContentAllowed;
60 70
61 DISALLOW_COPY_AND_ASSIGN(WebPermissions); 71 DISALLOW_COPY_AND_ASSIGN(WebPermissions);
62 }; 72 };
63 73
64 } 74 }
65 75
66 #endif 76 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698