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

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

Issue 1036003: Add chromium-side support for history.{push,replace}State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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) 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 <limits> 10 #include <limits>
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 !command_line.HasSwitch(switches::kDisableSessionStorage)); 810 !command_line.HasSwitch(switches::kDisableSessionStorage));
811 811
812 WebRuntimeFeatures::enableIndexedDatabase( 812 WebRuntimeFeatures::enableIndexedDatabase(
813 command_line.HasSwitch(switches::kEnableIndexedDatabase)); 813 command_line.HasSwitch(switches::kEnableIndexedDatabase));
814 814
815 WebRuntimeFeatures::enableGeolocation( 815 WebRuntimeFeatures::enableGeolocation(
816 command_line.HasSwitch(switches::kEnableGeolocation)); 816 command_line.HasSwitch(switches::kEnableGeolocation));
817 817
818 WebRuntimeFeatures::enableWebGL( 818 WebRuntimeFeatures::enableWebGL(
819 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); 819 command_line.HasSwitch(switches::kEnableExperimentalWebGL));
820
821 WebRuntimeFeatures::enablePushState(true);
820 } 822 }
821 823
822 void RenderThread::IdleHandler() { 824 void RenderThread::IdleHandler() {
823 #if (defined(OS_WIN) || defined(OS_LINUX)) && defined(USE_TCMALLOC) 825 #if (defined(OS_WIN) || defined(OS_LINUX)) && defined(USE_TCMALLOC)
824 MallocExtension::instance()->ReleaseFreeMemory(); 826 MallocExtension::instance()->ReleaseFreeMemory();
825 #endif 827 #endif
826 828
827 LOG(INFO) << "RenderThread calling v8 IdleNotification for " << this; 829 LOG(INFO) << "RenderThread calling v8 IdleNotification for " << this;
828 v8::V8::IdleNotification(); 830 v8::V8::IdleNotification();
829 831
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 spellchecker_->WordAdded(word); 927 spellchecker_->WordAdded(word);
926 } 928 }
927 929
928 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) { 930 void RenderThread::OnSpellCheckEnableAutoSpellCorrect(bool enable) {
929 spellchecker_->EnableAutoSpellCorrect(enable); 931 spellchecker_->EnableAutoSpellCorrect(enable);
930 } 932 }
931 933
932 void RenderThread::OnSetIsIncognitoProcess(bool is_incognito_process) { 934 void RenderThread::OnSetIsIncognitoProcess(bool is_incognito_process) {
933 is_incognito_process_ = is_incognito_process; 935 is_incognito_process_ = is_incognito_process;
934 } 936 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/navigation_controller_unittest.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698