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

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

Issue 7650027: Update Chromium to use new signature for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 71 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
72 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 72 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
73 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 73 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
74 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 74 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
75 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 75 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
76 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 76 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
77 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" 77 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h"
78 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 78 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
79 #include "ui/base/l10n/l10n_util.h" 79 #include "ui/base/l10n/l10n_util.h"
80 #include "ui/base/resource/resource_bundle.h" 80 #include "ui/base/resource/resource_bundle.h"
81 #include "v8/include/v8.h"
jam 2011/08/15 22:04:56 I don't think this is needed?
81 #include "webkit/plugins/npapi/plugin_list.h" 82 #include "webkit/plugins/npapi/plugin_list.h"
82 #include "webkit/plugins/ppapi/plugin_module.h" 83 #include "webkit/plugins/ppapi/plugin_module.h"
83 84
84 using autofill::AutofillAgent; 85 using autofill::AutofillAgent;
85 using autofill::FormManager; 86 using autofill::FormManager;
86 using autofill::PasswordAutofillManager; 87 using autofill::PasswordAutofillManager;
87 using WebKit::WebCache; 88 using WebKit::WebCache;
88 using WebKit::WebDataSource; 89 using WebKit::WebDataSource;
89 using WebKit::WebFrame; 90 using WebKit::WebFrame;
90 using WebKit::WebPlugin; 91 using WebKit::WebPlugin;
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 void ChromeContentRendererClient::DidCreateScriptContext(WebFrame* frame) { 632 void ChromeContentRendererClient::DidCreateScriptContext(WebFrame* frame) {
632 EventBindings::HandleContextCreated( 633 EventBindings::HandleContextCreated(
633 frame, false, extension_dispatcher_.get()); 634 frame, false, extension_dispatcher_.get());
634 } 635 }
635 636
636 void ChromeContentRendererClient::DidDestroyScriptContext(WebFrame* frame) { 637 void ChromeContentRendererClient::DidDestroyScriptContext(WebFrame* frame) {
637 EventBindings::HandleContextDestroyed(frame); 638 EventBindings::HandleContextDestroyed(frame);
638 } 639 }
639 640
640 void ChromeContentRendererClient::DidCreateIsolatedScriptContext( 641 void ChromeContentRendererClient::DidCreateIsolatedScriptContext(
641 WebFrame* frame) { 642 WebFrame* frame, int world_id, v8::Handle<v8::Context> context) {
642 EventBindings::HandleContextCreated(frame, true, extension_dispatcher_.get()); 643 EventBindings::HandleContextCreated(frame, true, extension_dispatcher_.get());
643 } 644 }
644 645
645 unsigned long long ChromeContentRendererClient::VisitedLinkHash( 646 unsigned long long ChromeContentRendererClient::VisitedLinkHash(
646 const char* canonical_url, size_t length) { 647 const char* canonical_url, size_t length) {
647 return visited_link_slave_->ComputeURLFingerprint(canonical_url, length); 648 return visited_link_slave_->ComputeURLFingerprint(canonical_url, length);
648 } 649 }
649 650
650 bool ChromeContentRendererClient::IsLinkVisited(unsigned long long link_hash) { 651 bool ChromeContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
651 return visited_link_slave_->IsVisited(link_hash); 652 return visited_link_slave_->IsVisited(link_hash);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 if (spellcheck_.get()) 704 if (spellcheck_.get())
704 thread->RemoveObserver(spellcheck_.get()); 705 thread->RemoveObserver(spellcheck_.get());
705 SpellCheck* new_spellcheck = new SpellCheck(); 706 SpellCheck* new_spellcheck = new SpellCheck();
706 if (spellcheck_provider_) 707 if (spellcheck_provider_)
707 spellcheck_provider_->SetSpellCheck(new_spellcheck); 708 spellcheck_provider_->SetSpellCheck(new_spellcheck);
708 spellcheck_.reset(new_spellcheck); 709 spellcheck_.reset(new_spellcheck);
709 thread->AddObserver(new_spellcheck); 710 thread->AddObserver(new_spellcheck);
710 } 711 }
711 712
712 } // namespace chrome 713 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698