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

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

Issue 54963005: Upstream printing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « android_webview/renderer/DEPS ('k') | android_webview/renderer/print_web_view_helper.h » ('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 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/url_constants.h" 8 #include "android_webview/common/url_constants.h"
9 #include "android_webview/renderer/aw_key_systems.h" 9 #include "android_webview/renderer/aw_key_systems.h"
10 #include "android_webview/renderer/aw_render_view_ext.h" 10 #include "android_webview/renderer/aw_render_view_ext.h"
11 #include "android_webview/renderer/print_web_view_helper.h"
11 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
12 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
13 #include "components/autofill/content/renderer/autofill_agent.h" 14 #include "components/autofill/content/renderer/autofill_agent.h"
14 #include "components/autofill/content/renderer/password_autofill_agent.h" 15 #include "components/autofill/content/renderer/password_autofill_agent.h"
15 #include "components/visitedlink/renderer/visitedlink_slave.h" 16 #include "components/visitedlink/renderer/visitedlink_slave.h"
16 #include "content/public/renderer/render_thread.h" 17 #include "content/public/renderer/render_thread.h"
17 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
18 #include "third_party/WebKit/public/platform/WebString.h" 19 #include "third_party/WebKit/public/platform/WebString.h"
19 #include "third_party/WebKit/public/platform/WebURL.h" 20 #include "third_party/WebKit/public/platform/WebURL.h"
20 #include "third_party/WebKit/public/platform/WebURLError.h" 21 #include "third_party/WebKit/public/platform/WebURLError.h"
(...skipping 24 matching lines...) Expand all
45 thread->AddObserver(aw_render_process_observer_.get()); 46 thread->AddObserver(aw_render_process_observer_.get());
46 47
47 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave); 48 visited_link_slave_.reset(new visitedlink::VisitedLinkSlave);
48 thread->AddObserver(visited_link_slave_.get()); 49 thread->AddObserver(visited_link_slave_.get());
49 } 50 }
50 51
51 void AwContentRendererClient::RenderViewCreated( 52 void AwContentRendererClient::RenderViewCreated(
52 content::RenderView* render_view) { 53 content::RenderView* render_view) {
53 AwRenderViewExt::RenderViewCreated(render_view); 54 AwRenderViewExt::RenderViewCreated(render_view);
54 55
56 new printing::PrintWebViewHelper(render_view);
55 // TODO(sgurun) do not create a password autofill agent (change 57 // TODO(sgurun) do not create a password autofill agent (change
56 // autofill agent to store a weakptr). 58 // autofill agent to store a weakptr).
57 autofill::PasswordAutofillAgent* password_autofill_agent = 59 autofill::PasswordAutofillAgent* password_autofill_agent =
58 new autofill::PasswordAutofillAgent(render_view); 60 new autofill::PasswordAutofillAgent(render_view);
59 new autofill::AutofillAgent(render_view, password_autofill_agent); 61 new autofill::AutofillAgent(render_view, password_autofill_agent);
60 } 62 }
61 63
62 std::string AwContentRendererClient::GetDefaultEncoding() { 64 std::string AwContentRendererClient::GetDefaultEncoding() {
63 return AwResource::GetDefaultTextEncoding(); 65 return AwResource::GetDefaultTextEncoding();
64 } 66 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool AwContentRendererClient::IsLinkVisited(unsigned long long link_hash) { 109 bool AwContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
108 return visited_link_slave_->IsVisited(link_hash); 110 return visited_link_slave_->IsVisited(link_hash);
109 } 111 }
110 112
111 void AwContentRendererClient::AddKeySystems( 113 void AwContentRendererClient::AddKeySystems(
112 std::vector<content::KeySystemInfo>* key_systems) { 114 std::vector<content::KeySystemInfo>* key_systems) {
113 AwAddKeySystems(key_systems); 115 AwAddKeySystems(key_systems);
114 } 116 }
115 117
116 } // namespace android_webview 118 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/renderer/DEPS ('k') | android_webview/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698