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

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

Issue 567037: Initial work on making extensions work in incognito mode. (Closed)
Patch Set: added experimental requirement Created 10 years, 10 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
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/user_script_slave.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/render_thread.h" 5 #include "chrome/renderer/render_thread.h"
6 6
7 #include <v8.h> 7 #include <v8.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 RenderView::ForEach(&setter); 313 RenderView::ForEach(&setter);
314 } 314 }
315 315
316 void RenderThread::OnSetZoomLevelForCurrentHost(const std::string& host, 316 void RenderThread::OnSetZoomLevelForCurrentHost(const std::string& host,
317 int zoom_level) { 317 int zoom_level) {
318 RenderViewZoomer zoomer(host, zoom_level); 318 RenderViewZoomer zoomer(host, zoom_level);
319 RenderView::ForEach(&zoomer); 319 RenderView::ForEach(&zoomer);
320 } 320 }
321 321
322 void RenderThread::OnUpdateUserScripts( 322 void RenderThread::OnUpdateUserScripts(
323 base::SharedMemoryHandle scripts) { 323 base::SharedMemoryHandle scripts, bool only_inject_incognito) {
324 DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle"; 324 DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle";
325 user_script_slave_->UpdateScripts(scripts); 325 user_script_slave_->UpdateScripts(scripts, only_inject_incognito);
326 UpdateActiveExtensions(); 326 UpdateActiveExtensions();
327 } 327 }
328 328
329 void RenderThread::OnSetExtensionFunctionNames( 329 void RenderThread::OnSetExtensionFunctionNames(
330 const std::vector<std::string>& names) { 330 const std::vector<std::string>& names) {
331 ExtensionProcessBindings::SetFunctionNames(names); 331 ExtensionProcessBindings::SetFunctionNames(names);
332 } 332 }
333 333
334 void RenderThread::OnPageActionsUpdated( 334 void RenderThread::OnPageActionsUpdated(
335 const std::string& extension_id, 335 const std::string& extension_id,
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct); 770 spellchecker_->EnableAutoSpellCorrect(auto_spell_correct);
771 } 771 }
772 772
773 void RenderThread::OnSpellCheckWordAdded(const std::string& word) { 773 void RenderThread::OnSpellCheckWordAdded(const std::string& word) {
774 spellchecker_->WordAdded(word); 774 spellchecker_->WordAdded(word);
775 } 775 }
776 776
777 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { 777 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) {
778 spellchecker_->EnableAutoSpellCorrect(enable); 778 spellchecker_->EnableAutoSpellCorrect(enable);
779 } 779 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/user_script_slave.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698