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

Side by Side Diff: content/renderer/presentation/presentation_connection_proxy.h

Issue 2613153003: [Presentation API] Replaces type converters with typemaps (Closed)
Patch Set: Extend presentation ID max length to 64. Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_PROXY_H_ 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_PROXY_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_PROXY_H_ 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_PROXY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "mojo/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nConnectionProxy.h" 10 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nConnectionProxy.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 ~PresentationConnectionProxy() override; 75 ~PresentationConnectionProxy() override;
76 76
77 virtual void SendConnectionMessage( 77 virtual void SendConnectionMessage(
78 blink::mojom::ConnectionMessagePtr connection_message, 78 blink::mojom::ConnectionMessagePtr connection_message,
79 const OnMessageCallback& callback) const; 79 const OnMessageCallback& callback) const;
80 80
81 // blink::mojom::PresentationConnection implementation 81 // blink::mojom::PresentationConnection implementation
82 void OnMessage(blink::mojom::ConnectionMessagePtr message, 82 void OnMessage(blink::mojom::ConnectionMessagePtr message,
83 const OnMessageCallback& callback) override; 83 const OnMessageCallback& callback) override;
84 void DidChangeState(blink::mojom::PresentationConnectionState state) override; 84 void DidChangeState(content::PresentationConnectionState state) override;
85 85
86 protected: 86 protected:
87 explicit PresentationConnectionProxy( 87 explicit PresentationConnectionProxy(
88 blink::WebPresentationConnection* source_connection); 88 blink::WebPresentationConnection* source_connection);
89 mojo::Binding<blink::mojom::PresentationConnection> binding_; 89 mojo::Binding<blink::mojom::PresentationConnection> binding_;
90 mojo::InterfacePtr<blink::mojom::PresentationConnection> 90 mojo::InterfacePtr<blink::mojom::PresentationConnection>
91 target_connection_ptr_; 91 target_connection_ptr_;
92 92
93 private: 93 private:
94 // Raw pointer to Blink connection object owning this proxy object. Does not 94 // Raw pointer to Blink connection object owning this proxy object. Does not
(...skipping 26 matching lines...) Expand all
121 121
122 // Sets |target_connection_ptr_| to |controller_connection_ptr|. Should be 122 // Sets |target_connection_ptr_| to |controller_connection_ptr|. Should be
123 // called only once. 123 // called only once.
124 void BindControllerConnection( 124 void BindControllerConnection(
125 blink::mojom::PresentationConnectionPtr controller_connection_ptr); 125 blink::mojom::PresentationConnectionPtr controller_connection_ptr);
126 }; 126 };
127 127
128 } // namespace content 128 } // namespace content
129 129
130 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_PROXY_H_ 130 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_CONNECTION_PROXY_H_
OLDNEW
« no previous file with comments | « content/public/common/presentation_session.h ('k') | content/renderer/presentation/presentation_connection_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698