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

Side by Side Diff: content/app/mojo/mojo_init.cc

Issue 741813002: Mojo: Raise the message size limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 64MB Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = 64*1024*1024;
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698