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

Side by Side Diff: content/child/navigator_connect/service_port_provider.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, 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
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_CHILD_NAVIGATOR_CONNECT_SERVICE_PORT_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_SERVICE_PORT_PROVIDER_H_
6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_SERVICE_PORT_PROVIDER_H_ 6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_SERVICE_PORT_PROVIDER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void destroy() override; 55 void destroy() override;
56 void connect(const blink::WebURL& target_url, 56 void connect(const blink::WebURL& target_url,
57 const blink::WebString& origin, 57 const blink::WebString& origin,
58 blink::WebServicePortConnectCallbacks* callbacks) override; 58 blink::WebServicePortConnectCallbacks* callbacks) override;
59 void postMessage(blink::WebServicePortID port_id, 59 void postMessage(blink::WebServicePortID port_id,
60 const blink::WebString& message, 60 const blink::WebString& message,
61 blink::WebMessagePortChannelArray* channels) override; 61 blink::WebMessagePortChannelArray* channels) override;
62 void closePort(blink::WebServicePortID port_id) override; 62 void closePort(blink::WebServicePortID port_id) override;
63 63
64 // ServicePortServiceClient implementation. 64 // ServicePortServiceClient implementation.
65 void PostMessage(int32_t port_id, 65 void PostMessageToPort(int32_t port_id,
66 const mojo::String& message, 66 const mojo::String& message,
67 mojo::Array<MojoTransferredMessagePortPtr> ports, 67 mojo::Array<MojoTransferredMessagePortPtr> ports,
68 mojo::Array<int32_t> new_routing_ids) override; 68 mojo::Array<int32_t> new_routing_ids) override;
69 69
70 private: 70 private:
71 ~ServicePortProvider() override; 71 ~ServicePortProvider() override;
72 friend class base::RefCountedThreadSafe<ServicePortProvider>; 72 friend class base::RefCountedThreadSafe<ServicePortProvider>;
73 73
74 void PostMessageToBrowser(int port_id, 74 void PostMessageToBrowser(int port_id,
75 const base::string16& message, 75 const base::string16& message,
76 const std::vector<TransferredMessagePort> ports); 76 const std::vector<TransferredMessagePort> ports);
77 77
78 void OnConnectResult( 78 void OnConnectResult(
(...skipping 10 matching lines...) Expand all
89 ServicePortServicePtr service_port_service_; 89 ServicePortServicePtr service_port_service_;
90 90
91 scoped_refptr<base::SingleThreadTaskRunner> main_loop_; 91 scoped_refptr<base::SingleThreadTaskRunner> main_loop_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(ServicePortProvider); 93 DISALLOW_COPY_AND_ASSIGN(ServicePortProvider);
94 }; 94 };
95 95
96 } // namespace content 96 } // namespace content
97 97
98 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_SERVICE_PORT_PROVIDER_H_ 98 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_SERVICE_PORT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698