Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "content/app/mojo/mojo_init.h" | 5 #include "content/app/mojo/mojo_init.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "mojo/edk/embedder/configuration.h" | |
| 8 #include "mojo/edk/embedder/embedder.h" | 9 #include "mojo/edk/embedder/embedder.h" |
| 9 #include "mojo/edk/embedder/simple_platform_support.h" | 10 #include "mojo/edk/embedder/simple_platform_support.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 void InitializeMojo() { | 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 | |
| 18 // cases. | |
| 19 mojo::embedder::GetConfiguration()->max_message_num_bytes = 256*1024*1024; | |
|
nasko
2014/11/19 22:31:49
I understand 4MB might be too small, but isn't 256
| |
| 14 mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>( | 20 mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>( |
| 15 new mojo::embedder::SimplePlatformSupport())); | 21 new mojo::embedder::SimplePlatformSupport())); |
| 16 } | 22 } |
| 17 | 23 |
| 18 } // namespace content | 24 } // namespace content |
| OLD | NEW |