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

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

Issue 101026: Change chrome-ui to chrome. I didn't go too far in converting existing string... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/url_constants.cc ('k') | chrome/renderer/render_view.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 if (webkit_client_.get()) 310 if (webkit_client_.get())
311 return; 311 return;
312 312
313 v8::V8::SetCounterFunction(StatsTable::FindLocation); 313 v8::V8::SetCounterFunction(StatsTable::FindLocation);
314 v8::V8::SetCreateHistogramFunction(CreateHistogram); 314 v8::V8::SetCreateHistogramFunction(CreateHistogram);
315 v8::V8::SetAddHistogramSampleFunction(AddHistogramSample); 315 v8::V8::SetAddHistogramSampleFunction(AddHistogramSample);
316 316
317 webkit_client_.reset(new RendererWebKitClientImpl); 317 webkit_client_.reset(new RendererWebKitClientImpl);
318 WebKit::initialize(webkit_client_.get()); 318 WebKit::initialize(webkit_client_.get());
319 319
320 // chrome-ui pages should not be accessible by normal content, and should 320 // chrome: pages should not be accessible by normal content, and should
321 // also be unable to script anything but themselves (to help limit the damage 321 // also be unable to script anything but themselves (to help limit the damage
322 // that a corrupt chrome-ui page could cause). 322 // that a corrupt chrome: page could cause).
323 WebString chrome_ui_scheme(ASCIIToUTF16(chrome::kChromeUIScheme)); 323 WebString chrome_ui_scheme(ASCIIToUTF16(chrome::kChromeUIScheme));
324 WebKit::registerURLSchemeAsLocal(chrome_ui_scheme); 324 WebKit::registerURLSchemeAsLocal(chrome_ui_scheme);
325 WebKit::registerURLSchemeAsNoAccess(chrome_ui_scheme); 325 WebKit::registerURLSchemeAsNoAccess(chrome_ui_scheme);
326 326
327 WebKit::registerExtension(extensions_v8::GearsExtension::Get()); 327 WebKit::registerExtension(extensions_v8::GearsExtension::Get());
328 WebKit::registerExtension(extensions_v8::IntervalExtension::Get()); 328 WebKit::registerExtension(extensions_v8::IntervalExtension::Get());
329 WebKit::registerExtension(extensions_v8::LoadTimesExtension::Get()); 329 WebKit::registerExtension(extensions_v8::LoadTimesExtension::Get());
330 WebKit::registerExtension(extensions_v8::ExternalExtension::Get()); 330 WebKit::registerExtension(extensions_v8::ExternalExtension::Get());
331 331
332 WebKit::registerExtension(ExtensionProcessBindings::Get(), 332 WebKit::registerExtension(ExtensionProcessBindings::Get(),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 void RenderThread::OnPurgePluginListCache() { 373 void RenderThread::OnPurgePluginListCache() {
374 // The call below will cause a GetPlugins call with refresh=true, but at this 374 // The call below will cause a GetPlugins call with refresh=true, but at this
375 // point we already know that the browser has refreshed its list, so disable 375 // point we already know that the browser has refreshed its list, so disable
376 // refresh temporarily to prevent each renderer process causing the list to be 376 // refresh temporarily to prevent each renderer process causing the list to be
377 // regenerated. 377 // regenerated.
378 plugin_refresh_allowed_ = false; 378 plugin_refresh_allowed_ = false;
379 WebKit::resetPluginCache(); 379 WebKit::resetPluginCache();
380 plugin_refresh_allowed_ = true; 380 plugin_refresh_allowed_ = true;
381 } 381 }
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698