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

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

Issue 12045031: Disabling automation on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed last suggestion from John Created 7 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 | « chrome/common/all_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 16 matching lines...) Expand all
27 #include "chrome/common/extensions/manifest_handler.h" 27 #include "chrome/common/extensions/manifest_handler.h"
28 #include "chrome/common/extensions/manifest_url_handler.h" 28 #include "chrome/common/extensions/manifest_url_handler.h"
29 #include "chrome/common/extensions/web_accessible_resources_handler.h" 29 #include "chrome/common/extensions/web_accessible_resources_handler.h"
30 #include "chrome/common/external_ipc_fuzzer.h" 30 #include "chrome/common/external_ipc_fuzzer.h"
31 #include "chrome/common/localized_error.h" 31 #include "chrome/common/localized_error.h"
32 #include "chrome/common/render_messages.h" 32 #include "chrome/common/render_messages.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "chrome/renderer/autofill/autofill_agent.h" 34 #include "chrome/renderer/autofill/autofill_agent.h"
35 #include "chrome/renderer/autofill/password_autofill_manager.h" 35 #include "chrome/renderer/autofill/password_autofill_manager.h"
36 #include "chrome/renderer/autofill/password_generation_manager.h" 36 #include "chrome/renderer/autofill/password_generation_manager.h"
37 #include "chrome/renderer/automation/automation_renderer_helper.h"
38 #include "chrome/renderer/benchmarking_extension.h" 37 #include "chrome/renderer/benchmarking_extension.h"
39 #include "chrome/renderer/chrome_render_process_observer.h" 38 #include "chrome/renderer/chrome_render_process_observer.h"
40 #include "chrome/renderer/chrome_render_view_observer.h" 39 #include "chrome/renderer/chrome_render_view_observer.h"
41 #include "chrome/renderer/content_settings_observer.h" 40 #include "chrome/renderer/content_settings_observer.h"
42 #include "chrome/renderer/extensions/chrome_v8_context.h" 41 #include "chrome/renderer/extensions/chrome_v8_context.h"
43 #include "chrome/renderer/extensions/chrome_v8_extension.h" 42 #include "chrome/renderer/extensions/chrome_v8_extension.h"
44 #include "chrome/renderer/extensions/dispatcher.h" 43 #include "chrome/renderer/extensions/dispatcher.h"
45 #include "chrome/renderer/extensions/extension_helper.h" 44 #include "chrome/renderer/extensions/extension_helper.h"
46 #include "chrome/renderer/extensions/miscellaneous_bindings.h" 45 #include "chrome/renderer/extensions/miscellaneous_bindings.h"
47 #include "chrome/renderer/extensions/resource_request_policy.h" 46 #include "chrome/renderer/extensions/resource_request_policy.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 88 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
90 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
91 #include "ui/base/l10n/l10n_util.h" 90 #include "ui/base/l10n/l10n_util.h"
92 #include "ui/base/layout.h" 91 #include "ui/base/layout.h"
93 #include "ui/base/resource/resource_bundle.h" 92 #include "ui/base/resource/resource_bundle.h"
94 #include "ui/webui/jstemplate_builder.h" 93 #include "ui/webui/jstemplate_builder.h"
95 #include "webkit/plugins/npapi/plugin_list.h" 94 #include "webkit/plugins/npapi/plugin_list.h"
96 #include "webkit/plugins/ppapi/plugin_module.h" 95 #include "webkit/plugins/ppapi/plugin_module.h"
97 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" 96 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
98 97
98 #if defined(ENABLE_AUTOMATION)
99 #include "chrome/renderer/automation/automation_renderer_helper.h"
100 #endif
101
99 using autofill::AutofillAgent; 102 using autofill::AutofillAgent;
100 using autofill::PasswordAutofillManager; 103 using autofill::PasswordAutofillManager;
101 using autofill::PasswordGenerationManager; 104 using autofill::PasswordGenerationManager;
102 using content::RenderThread; 105 using content::RenderThread;
103 using extensions::Extension; 106 using extensions::Extension;
104 using WebKit::WebCache; 107 using WebKit::WebCache;
105 using WebKit::WebConsoleMessage; 108 using WebKit::WebConsoleMessage;
106 using WebKit::WebDataSource; 109 using WebKit::WebDataSource;
107 using WebKit::WebDocument; 110 using WebKit::WebDocument;
108 using WebKit::WebFrame; 111 using WebKit::WebFrame;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 317
315 TranslateHelper* translate = new TranslateHelper(render_view); 318 TranslateHelper* translate = new TranslateHelper(render_view);
316 new ChromeRenderViewObserver( 319 new ChromeRenderViewObserver(
317 render_view, content_settings, chrome_observer_.get(), 320 render_view, content_settings, chrome_observer_.get(),
318 extension_dispatcher_.get(), translate); 321 extension_dispatcher_.get(), translate);
319 322
320 #if defined(ENABLE_PLUGINS) 323 #if defined(ENABLE_PLUGINS)
321 new PepperHelper(render_view); 324 new PepperHelper(render_view);
322 #endif 325 #endif
323 326
327 #if defined(ENABLE_AUTOMATION)
324 // Used only for testing/automation. 328 // Used only for testing/automation.
325 if (CommandLine::ForCurrentProcess()->HasSwitch( 329 if (CommandLine::ForCurrentProcess()->HasSwitch(
326 switches::kDomAutomationController)) { 330 switches::kDomAutomationController)) {
327 new AutomationRendererHelper(render_view); 331 new AutomationRendererHelper(render_view);
328 } 332 }
333 #endif
329 } 334 }
330 335
331 void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) { 336 void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) {
332 child_process_logging::SetNumberOfViews(number_of_views); 337 child_process_logging::SetNumberOfViews(number_of_views);
333 } 338 }
334 339
335 SkBitmap* ChromeContentRendererClient::GetSadPluginBitmap() { 340 SkBitmap* ChromeContentRendererClient::GetSadPluginBitmap() {
336 return const_cast<SkBitmap*>(ResourceBundle::GetSharedInstance(). 341 return const_cast<SkBitmap*>(ResourceBundle::GetSharedInstance().
337 GetImageNamed(IDR_SAD_PLUGIN).ToSkBitmap()); 342 GetImageNamed(IDR_SAD_PLUGIN).ToSkBitmap());
338 } 343 }
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 } 1043 }
1039 1044
1040 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( 1045 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories(
1041 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { 1046 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {
1042 #if defined(ENABLE_PLUGINS) 1047 #if defined(ENABLE_PLUGINS)
1043 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); 1048 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory);
1044 #endif 1049 #endif
1045 } 1050 }
1046 1051
1047 } // namespace chrome 1052 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/all_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698