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

Side by Side Diff: android_webview/renderer/aw_permission_client.h

Issue 138333006: Now that RenderFrame is 1:1 with WebFrame, add the associated getters and start cleaning up assumpt… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | android_webview/renderer/aw_permission_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_
7 7
8 #include "content/public/renderer/render_frame_observer.h" 8 #include "content/public/renderer/render_frame_observer.h"
9 #include "third_party/WebKit/public/web/WebPermissionClient.h" 9 #include "third_party/WebKit/public/web/WebPermissionClient.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 // Android WebView implementation of blink::WebPermissionClient. 13 // Android WebView implementation of blink::WebPermissionClient.
14 class AwPermissionClient : public content::RenderFrameObserver, 14 class AwPermissionClient : public content::RenderFrameObserver,
boliu 2014/01/15 18:12:46 This is implementing RenderFrameObserver only so i
jam 2014/01/16 16:29:08 we do have other observers like this. i think tryi
15 public blink::WebPermissionClient { 15 public blink::WebPermissionClient {
16 public: 16 public:
17 explicit AwPermissionClient(content::RenderFrame* render_view); 17 explicit AwPermissionClient(content::RenderFrame* render_view);
18 18
19 private: 19 private:
20 virtual ~AwPermissionClient(); 20 virtual ~AwPermissionClient();
21 21
22 // content::RenderFrameObserver implementation.
23 virtual void WebFrameCreated(blink::WebFrame* frame) OVERRIDE;
24
25 // blink::WebPermissionClient implementation. 22 // blink::WebPermissionClient implementation.
26 virtual bool allowDisplayingInsecureContent( 23 virtual bool allowDisplayingInsecureContent(
27 blink::WebFrame* frame, 24 blink::WebFrame* frame,
28 bool enabled_per_settings, 25 bool enabled_per_settings,
29 const blink::WebSecurityOrigin& origin, 26 const blink::WebSecurityOrigin& origin,
30 const blink::WebURL& url) OVERRIDE; 27 const blink::WebURL& url) OVERRIDE;
31 virtual bool allowRunningInsecureContent( 28 virtual bool allowRunningInsecureContent(
32 blink::WebFrame* frame, 29 blink::WebFrame* frame,
33 bool enabled_per_settings, 30 bool enabled_per_settings,
34 const blink::WebSecurityOrigin& origin, 31 const blink::WebSecurityOrigin& origin,
35 const blink::WebURL& url) OVERRIDE; 32 const blink::WebURL& url) OVERRIDE;
36 33
37 DISALLOW_COPY_AND_ASSIGN(AwPermissionClient); 34 DISALLOW_COPY_AND_ASSIGN(AwPermissionClient);
38 }; 35 };
39 36
40 } // namespace android_webview 37 } // namespace android_webview
41 38
42 #endif // ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ 39 #endif // ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/renderer/aw_permission_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698