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

Side by Side Diff: content/browser/navigator_connect/service_port_service_impl.h

Issue 1409223004: mandoline: Add automatic tracing at mojo call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Safety rebase to ToT Created 5 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 navigator_connect_context, 50 navigator_connect_context,
51 const scoped_refptr<MessagePortMessageFilter>& 51 const scoped_refptr<MessagePortMessageFilter>&
52 message_port_message_filter, 52 message_port_message_filter,
53 mojo::InterfaceRequest<ServicePortService> request); 53 mojo::InterfaceRequest<ServicePortService> request);
54 54
55 // ServicePortService methods: 55 // ServicePortService methods:
56 void SetClient(ServicePortServiceClientPtr client) override; 56 void SetClient(ServicePortServiceClientPtr client) override;
57 void Connect(const mojo::String& target_url, 57 void Connect(const mojo::String& target_url,
58 const mojo::String& origin, 58 const mojo::String& origin,
59 const ConnectCallback& callback) override; 59 const ConnectCallback& callback) override;
60 void PostMessage(int32_t port_id, 60 void PostMessageToPort(
61 const mojo::String& message, 61 int32_t port_id,
62 mojo::Array<MojoTransferredMessagePortPtr> ports) override; 62 const mojo::String& message,
63 mojo::Array<MojoTransferredMessagePortPtr> ports) override;
63 void ClosePort(int32_t port_id) override; 64 void ClosePort(int32_t port_id) override;
64 65
65 // Callback called when a connection to a service has been establised or 66 // Callback called when a connection to a service has been establised or
66 // rejected. 67 // rejected.
67 void OnConnectResult(const ConnectCallback& callback, 68 void OnConnectResult(const ConnectCallback& callback,
68 int message_port_id, 69 int message_port_id,
69 bool success); 70 bool success);
70 71
71 mojo::StrongBinding<ServicePortService> binding_; 72 mojo::StrongBinding<ServicePortService> binding_;
72 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; 73 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_;
73 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; 74 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
74 ServicePortServiceClientPtr client_; 75 ServicePortServiceClientPtr client_;
75 base::WeakPtrFactory<ServicePortServiceImpl> weak_ptr_factory_; 76 base::WeakPtrFactory<ServicePortServiceImpl> weak_ptr_factory_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(ServicePortServiceImpl); 78 DISALLOW_COPY_AND_ASSIGN(ServicePortServiceImpl);
78 }; 79 };
79 80
80 } // namespace content 81 } // namespace content
81 82
82 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ 83 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/web_view/frame_connection.cc ('k') | content/browser/navigator_connect/service_port_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698