Add support for the V8 LoadTimes extension (issue #917).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1177 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
9e0ba3801e
commit
f70030adab
3
cef.gyp
3
cef.gyp
|
@ -1010,6 +1010,9 @@
|
|||
'<(DEPTH)/chrome/browser/prefs/proxy_prefs.h',
|
||||
'<(DEPTH)/chrome/common/pref_names.cc',
|
||||
'<(DEPTH)/chrome/common/pref_names.h',
|
||||
# Include sources for the loadtimes V8 extension.
|
||||
'<(DEPTH)/chrome/renderer/loadtimes_extension_bindings.h',
|
||||
'<(DEPTH)/chrome/renderer/loadtimes_extension_bindings.cc',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
|
|
|
@ -30,6 +30,7 @@ MSVC_POP_WARNING();
|
|||
#include "base/command_line.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/string_number_conversions.h"
|
||||
#include "chrome/renderer/loadtimes_extension_bindings.h"
|
||||
#include "content/common/child_thread.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/browser/render_process_host.h"
|
||||
|
@ -457,6 +458,7 @@ void CefContentRendererClient::RenderThreadStarted() {
|
|||
content::RenderThread* thread = content::RenderThread::Get();
|
||||
thread->AddObserver(observer_.get());
|
||||
thread->GetChannel()->AddFilter(new CefRenderMessageFilter);
|
||||
thread->RegisterExtension(extensions_v8::LoadTimesExtension::Get());
|
||||
|
||||
if (content::RenderProcessHost::run_renderer_in_process()) {
|
||||
// When running in single-process mode register as a destruction observer
|
||||
|
|
Loading…
Reference in New Issue