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

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

Issue 7044095: Hooking MHTML generation to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years, 6 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/render_messages.h ('k') | chrome/renderer/mhtml_generator.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 26 matching lines...) Expand all
37 #include "chrome/renderer/extensions/bindings_utils.h" 37 #include "chrome/renderer/extensions/bindings_utils.h"
38 #include "chrome/renderer/extensions/event_bindings.h" 38 #include "chrome/renderer/extensions/event_bindings.h"
39 #include "chrome/renderer/extensions/extension_dispatcher.h" 39 #include "chrome/renderer/extensions/extension_dispatcher.h"
40 #include "chrome/renderer/extensions/extension_helper.h" 40 #include "chrome/renderer/extensions/extension_helper.h"
41 #include "chrome/renderer/extensions/extension_process_bindings.h" 41 #include "chrome/renderer/extensions/extension_process_bindings.h"
42 #include "chrome/renderer/extensions/extension_resource_request_policy.h" 42 #include "chrome/renderer/extensions/extension_resource_request_policy.h"
43 #include "chrome/renderer/extensions/renderer_extension_bindings.h" 43 #include "chrome/renderer/extensions/renderer_extension_bindings.h"
44 #include "chrome/renderer/external_extension.h" 44 #include "chrome/renderer/external_extension.h"
45 #include "chrome/renderer/loadtimes_extension_bindings.h" 45 #include "chrome/renderer/loadtimes_extension_bindings.h"
46 #include "chrome/renderer/localized_error.h" 46 #include "chrome/renderer/localized_error.h"
47 #include "chrome/renderer/mhtml_generator.h"
47 #include "chrome/renderer/net/renderer_net_predictor.h" 48 #include "chrome/renderer/net/renderer_net_predictor.h"
48 #include "chrome/renderer/page_click_tracker.h" 49 #include "chrome/renderer/page_click_tracker.h"
49 #include "chrome/renderer/page_load_histograms.h" 50 #include "chrome/renderer/page_load_histograms.h"
50 #include "chrome/renderer/prerender/prerender_helper.h" 51 #include "chrome/renderer/prerender/prerender_helper.h"
51 #include "chrome/renderer/print_web_view_helper.h" 52 #include "chrome/renderer/print_web_view_helper.h"
52 #include "chrome/renderer/renderer_histogram_snapshots.h" 53 #include "chrome/renderer/renderer_histogram_snapshots.h"
53 #include "chrome/renderer/safe_browsing/malware_dom_details.h" 54 #include "chrome/renderer/safe_browsing/malware_dom_details.h"
54 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 55 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
55 #include "chrome/renderer/search_extension.h" 56 #include "chrome/renderer/search_extension.h"
56 #include "chrome/renderer/searchbox.h" 57 #include "chrome/renderer/searchbox.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 switches::kDisableClientSidePhishingDetection)) { 191 switches::kDisableClientSidePhishingDetection)) {
191 phishing_classifier = 192 phishing_classifier =
192 safe_browsing::PhishingClassifierDelegate::Create(render_view, NULL); 193 safe_browsing::PhishingClassifierDelegate::Create(render_view, NULL);
193 } 194 }
194 #endif 195 #endif
195 196
196 ContentSettingsObserver* content_settings = 197 ContentSettingsObserver* content_settings =
197 new ContentSettingsObserver(render_view); 198 new ContentSettingsObserver(render_view);
198 new DevToolsAgent(render_view); 199 new DevToolsAgent(render_view);
199 new ExtensionHelper(render_view, extension_dispatcher_.get()); 200 new ExtensionHelper(render_view, extension_dispatcher_.get());
201 new MHTMLGenerator(render_view);
200 new PageLoadHistograms(render_view, histogram_snapshots_.get()); 202 new PageLoadHistograms(render_view, histogram_snapshots_.get());
201 new PrintWebViewHelper(render_view); 203 new PrintWebViewHelper(render_view);
202 new SearchBox(render_view); 204 new SearchBox(render_view);
203 new SpellCheckProvider(render_view, spellcheck_.get()); 205 new SpellCheckProvider(render_view, spellcheck_.get());
204 safe_browsing::MalwareDOMDetails::Create(render_view); 206 safe_browsing::MalwareDOMDetails::Create(render_view);
205 207
206 #if defined(OS_MACOSX) 208 #if defined(OS_MACOSX)
207 new TextInputClientObserver(render_view); 209 new TextInputClientObserver(render_view);
208 #endif // defined(OS_MACOSX) 210 #endif // defined(OS_MACOSX)
209 211
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 if (old_url == new_url) { 574 if (old_url == new_url) {
573 bool is_extension_url = !!extensions->GetByURL(new_url); 575 bool is_extension_url = !!extensions->GetByURL(new_url);
574 if (is_extension_url != extension_dispatcher_->is_extension_process()) 576 if (is_extension_url != extension_dispatcher_->is_extension_process())
575 return true; 577 return true;
576 } 578 }
577 579
578 return !extensions->InSameExtent(old_url, new_url); 580 return !extensions->InSameExtent(old_url, new_url);
579 } 581 }
580 582
581 } // namespace chrome 583 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/mhtml_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698