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

Side by Side Diff: content/browser/mojo/mojo_application_host.h

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 9 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
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.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 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 #ifndef CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
6 #define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ 6 #define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/application_setup.mojom.h" 10 #include "content/common/application_setup.mojom.h"
11 #include "content/common/mojo/channel_init.h"
11 #include "content/common/mojo/service_registry_impl.h" 12 #include "content/common/mojo/service_registry_impl.h"
12 #include "third_party/mojo/src/mojo/edk/embedder/channel_init.h"
13 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" 13 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h"
14 14
15 #if defined(OS_ANDROID) 15 #if defined(OS_ANDROID)
16 #include "content/browser/mojo/service_registry_android.h" 16 #include "content/browser/mojo/service_registry_android.h"
17 #endif 17 #endif
18 18
19 namespace IPC { 19 namespace IPC {
20 class Sender; 20 class Sender;
21 } 21 }
22 22
(...skipping 18 matching lines...) Expand all
41 void WillDestroySoon(); 41 void WillDestroySoon();
42 42
43 ServiceRegistry* service_registry() { return &service_registry_; } 43 ServiceRegistry* service_registry() { return &service_registry_; }
44 44
45 #if defined(OS_ANDROID) 45 #if defined(OS_ANDROID)
46 ServiceRegistryAndroid* service_registry_android() { 46 ServiceRegistryAndroid* service_registry_android() {
47 return service_registry_android_.get(); 47 return service_registry_android_.get();
48 } 48 }
49 #endif 49 #endif
50 50
51 void OverrideIOTaskRunnerForTest(
52 scoped_refptr<base::TaskRunner> io_task_runner);
53
51 private: 54 private:
52 mojo::embedder::ChannelInit channel_init_; 55 ChannelInit channel_init_;
53 mojo::embedder::ScopedPlatformHandle client_handle_; 56 mojo::embedder::ScopedPlatformHandle client_handle_;
54 57
55 bool did_activate_; 58 bool did_activate_;
56 59
57 scoped_ptr<ApplicationSetup> application_setup_; 60 scoped_ptr<ApplicationSetup> application_setup_;
58 ServiceRegistryImpl service_registry_; 61 ServiceRegistryImpl service_registry_;
59 62
63 scoped_refptr<base::TaskRunner> io_task_runner_override_;
64
60 #if defined(OS_ANDROID) 65 #if defined(OS_ANDROID)
61 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; 66 scoped_ptr<ServiceRegistryAndroid> service_registry_android_;
62 #endif 67 #endif
63 68
64 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost); 69 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost);
65 }; 70 };
66 71
67 } // namespace content 72 } // namespace content
68 73
69 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ 74 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698