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

Side by Side Diff: android_webview/renderer/aw_content_renderer_client.cc

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include "android_webview/renderer/aw_content_renderer_client.h" 5 #include "android_webview/renderer/aw_content_renderer_client.h"
6 6
7 #include "android_webview/common/aw_resource.h" 7 #include "android_webview/common/aw_resource.h"
8 #include "android_webview/common/render_view_messages.h" 8 #include "android_webview/common/render_view_messages.h"
9 #include "android_webview/common/url_constants.h" 9 #include "android_webview/common/url_constants.h"
10 #include "android_webview/renderer/aw_key_systems.h" 10 #include "android_webview/renderer/aw_key_systems.h"
11 #include "android_webview/renderer/aw_permission_client.h"
11 #include "android_webview/renderer/aw_render_view_ext.h" 12 #include "android_webview/renderer/aw_render_view_ext.h"
12 #include "android_webview/renderer/print_web_view_helper.h" 13 #include "android_webview/renderer/print_web_view_helper.h"
13 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
14 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
15 #include "components/autofill/content/renderer/autofill_agent.h" 16 #include "components/autofill/content/renderer/autofill_agent.h"
16 #include "components/autofill/content/renderer/password_autofill_agent.h" 17 #include "components/autofill/content/renderer/password_autofill_agent.h"
17 #include "components/visitedlink/renderer/visitedlink_slave.h" 18 #include "components/visitedlink/renderer/visitedlink_slave.h"
18 #include "content/public/common/url_constants.h" 19 #include "content/public/common/url_constants.h"
19 #include "content/public/renderer/document_state.h" 20 #include "content/public/renderer/document_state.h"
20 #include "content/public/renderer/navigation_state.h" 21 #include "content/public/renderer/navigation_state.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 bool ignore_navigation = false; 107 bool ignore_navigation = false;
107 base::string16 url = request.url().string(); 108 base::string16 url = request.url().string();
108 109
109 int routing_id = view->GetRoutingID(); 110 int routing_id = view->GetRoutingID();
110 RenderThread::Get()->Send(new AwViewHostMsg_ShouldOverrideUrlLoading( 111 RenderThread::Get()->Send(new AwViewHostMsg_ShouldOverrideUrlLoading(
111 routing_id, url, &ignore_navigation)); 112 routing_id, url, &ignore_navigation));
112 return ignore_navigation; 113 return ignore_navigation;
113 } 114 }
114 115
116 void AwContentRendererClient::RenderFrameCreated(
117 content::RenderFrame* render_frame) {
118 new AwPermissionClient(render_frame);
119 }
120
115 void AwContentRendererClient::RenderViewCreated( 121 void AwContentRendererClient::RenderViewCreated(
116 content::RenderView* render_view) { 122 content::RenderView* render_view) {
117 AwRenderViewExt::RenderViewCreated(render_view); 123 AwRenderViewExt::RenderViewCreated(render_view);
118 124
119 new printing::PrintWebViewHelper(render_view); 125 new printing::PrintWebViewHelper(render_view);
120 // TODO(sgurun) do not create a password autofill agent (change 126 // TODO(sgurun) do not create a password autofill agent (change
121 // autofill agent to store a weakptr). 127 // autofill agent to store a weakptr).
122 autofill::PasswordAutofillAgent* password_autofill_agent = 128 autofill::PasswordAutofillAgent* password_autofill_agent =
123 new autofill::PasswordAutofillAgent(render_view); 129 new autofill::PasswordAutofillAgent(render_view);
124 new autofill::AutofillAgent(render_view, password_autofill_agent); 130 new autofill::AutofillAgent(render_view, password_autofill_agent);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 bool AwContentRendererClient::IsLinkVisited(unsigned long long link_hash) { 178 bool AwContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
173 return visited_link_slave_->IsVisited(link_hash); 179 return visited_link_slave_->IsVisited(link_hash);
174 } 180 }
175 181
176 void AwContentRendererClient::AddKeySystems( 182 void AwContentRendererClient::AddKeySystems(
177 std::vector<content::KeySystemInfo>* key_systems) { 183 std::vector<content::KeySystemInfo>* key_systems) {
178 AwAddKeySystems(key_systems); 184 AwAddKeySystems(key_systems);
179 } 185 }
180 186
181 } // namespace android_webview 187 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/renderer/aw_content_renderer_client.h ('k') | android_webview/renderer/aw_permission_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698