1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/app/mojo/mojo_init.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "third_party/mojo/src/mojo/edk/embedder/configuration.h"
9 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
10 #include "third_party/mojo/src/mojo/edk/embedder/simple_platform_support.h"
14 void InitializeMojo() {
15 // Things like content_shell and DevTools ocassionally send big
16 // message which includes whole rendered screen or all loaded
17 // scripts. The buffer size has to be big enough to allow such use
19 mojo::embedder::GetConfiguration()->max_message_num_bytes
= 64*1024*1024;
20 mojo::embedder::Init(scoped_ptr
<mojo::embedder::PlatformSupport
>(
21 new mojo::embedder::SimplePlatformSupport()));
24 } // namespace content