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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 14977013: Delete Automation[Tab/Renderer]Helper and users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update now that 202087 is committed Created 7 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 #include "ui/base/l10n/l10n_util.h" 92 #include "ui/base/l10n/l10n_util.h"
93 #include "ui/base/layout.h" 93 #include "ui/base/layout.h"
94 #include "ui/base/resource/resource_bundle.h" 94 #include "ui/base/resource/resource_bundle.h"
95 #include "ui/webui/jstemplate_builder.h" 95 #include "ui/webui/jstemplate_builder.h"
96 #include "webkit/plugins/npapi/plugin_list.h" 96 #include "webkit/plugins/npapi/plugin_list.h"
97 #include "webkit/plugins/ppapi/plugin_module.h" 97 #include "webkit/plugins/ppapi/plugin_module.h"
98 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" 98 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
99 99
100 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 100 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
101 101
102 #if defined(ENABLE_AUTOMATION)
103 #include "chrome/renderer/automation/automation_renderer_helper.h"
104 #endif
105
106 using autofill::AutofillAgent; 102 using autofill::AutofillAgent;
107 using autofill::PasswordAutofillAgent; 103 using autofill::PasswordAutofillAgent;
108 using autofill::PasswordGenerationManager; 104 using autofill::PasswordGenerationManager;
109 using content::RenderThread; 105 using content::RenderThread;
110 using extensions::Extension; 106 using extensions::Extension;
111 using WebKit::WebCache; 107 using WebKit::WebCache;
112 using WebKit::WebConsoleMessage; 108 using WebKit::WebConsoleMessage;
113 using WebKit::WebDataSource; 109 using WebKit::WebDataSource;
114 using WebKit::WebDocument; 110 using WebKit::WebDocument;
115 using WebKit::WebFrame; 111 using WebKit::WebFrame;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 new ChromeRenderViewObserver( 347 new ChromeRenderViewObserver(
352 render_view, content_settings, chrome_observer_.get(), 348 render_view, content_settings, chrome_observer_.get(),
353 extension_dispatcher_.get()); 349 extension_dispatcher_.get());
354 350
355 #if defined(ENABLE_PLUGINS) 351 #if defined(ENABLE_PLUGINS)
356 new PepperHelper(render_view); 352 new PepperHelper(render_view);
357 #endif 353 #endif
358 354
359 new NetErrorHelper(render_view); 355 new NetErrorHelper(render_view);
360 356
361 #if defined(ENABLE_AUTOMATION)
362 // Used only for testing/automation.
363 if (command_line->HasSwitch(switches::kDomAutomationController))
364 new AutomationRendererHelper(render_view);
365 #endif
366
367 #if defined(ENABLE_ONE_CLICK_SIGNIN) 357 #if defined(ENABLE_ONE_CLICK_SIGNIN)
368 new OneClickSigninAgent(render_view); 358 new OneClickSigninAgent(render_view);
369 #endif 359 #endif
370 } 360 }
371 361
372 void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) { 362 void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) {
373 child_process_logging::SetNumberOfViews(number_of_views); 363 child_process_logging::SetNumberOfViews(number_of_views);
374 } 364 }
375 365
376 SkBitmap* ChromeContentRendererClient::GetSadPluginBitmap() { 366 SkBitmap* ChromeContentRendererClient::GetSadPluginBitmap() {
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1169
1180 if (container->element().shadowHost().isNull()) 1170 if (container->element().shadowHost().isNull())
1181 return false; 1171 return false;
1182 1172
1183 WebString tag_name = container->element().shadowHost().tagName(); 1173 WebString tag_name = container->element().shadowHost().tagName();
1184 return tag_name.equals(WebString::fromUTF8(kWebViewTagName)) || 1174 return tag_name.equals(WebString::fromUTF8(kWebViewTagName)) ||
1185 tag_name.equals(WebString::fromUTF8(kAdViewTagName)); 1175 tag_name.equals(WebString::fromUTF8(kAdViewTagName));
1186 } 1176 }
1187 1177
1188 } // namespace chrome 1178 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698