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

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

Issue 304273004: Add name to services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get chrome to build Created 6 years, 6 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 | Annotate | Revision Log
« 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/process/process_handle.h" 8 #include "base/process/process_handle.h"
9 #include "mojo/common/channel_init.h" 9 #include "mojo/common/channel_init.h"
10 #include "mojo/embedder/scoped_platform_handle.h" 10 #include "mojo/embedder/scoped_platform_handle.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ServiceProviderImpl 43 class ServiceProviderImpl
44 : public mojo::InterfaceImpl<mojo::ServiceProvider> { 44 : public mojo::InterfaceImpl<mojo::ServiceProvider> {
45 public: 45 public:
46 virtual void OnConnectionError() OVERRIDE { 46 virtual void OnConnectionError() OVERRIDE {
47 // TODO(darin): How should we handle this error? 47 // TODO(darin): How should we handle this error?
48 } 48 }
49 49
50 // mojo::ServiceProvider methods: 50 // mojo::ServiceProvider methods:
51 virtual void ConnectToService( 51 virtual void ConnectToService(
52 const mojo::String& url, 52 const mojo::String& url,
53 const mojo::String& name,
53 mojo::ScopedMessagePipeHandle handle) OVERRIDE; 54 mojo::ScopedMessagePipeHandle handle) OVERRIDE;
54 }; 55 };
55 56
56 mojo::common::ChannelInit channel_init_; 57 mojo::common::ChannelInit channel_init_;
57 mojo::embedder::ScopedPlatformHandle client_handle_; 58 mojo::embedder::ScopedPlatformHandle client_handle_;
58 59
59 scoped_ptr<ServiceProviderImpl> child_service_provider_; 60 scoped_ptr<ServiceProviderImpl> child_service_provider_;
60 61
61 bool did_activate_; 62 bool did_activate_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost); 64 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost);
64 }; 65 };
65 66
66 } // namespace content 67 } // namespace content
67 68
68 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ 69 #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