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

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

Issue 938403005: Make it possible for a navigator.connect service to receive messages as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-pass-flag
Patch Set: mention bug 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/navigator_connect/navigator_connect_context_impl.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_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ 5 #ifndef CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ 6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 private: 46 private:
47 ~NavigatorConnectContextImpl() override; 47 ~NavigatorConnectContextImpl() override;
48 48
49 void AddFactoryOnIOThread(scoped_ptr<NavigatorConnectServiceFactory> factory); 49 void AddFactoryOnIOThread(scoped_ptr<NavigatorConnectServiceFactory> factory);
50 50
51 // Callback called by service factories when a connection succeeded or failed. 51 // Callback called by service factories when a connection succeeded or failed.
52 void OnConnectResult(const NavigatorConnectClient& client, 52 void OnConnectResult(const NavigatorConnectClient& client,
53 int client_message_port_id, 53 int client_message_port_id,
54 int client_port_route_id, 54 int client_port_route_id,
55 const ConnectCallback& callback, 55 const ConnectCallback& callback,
56 MessagePortDelegate* delegate); 56 MessagePortDelegate* delegate,
57 bool data_as_values);
57 58
58 // List of factories to try to handle URLs. 59 // List of factories to try to handle URLs.
59 ScopedVector<NavigatorConnectServiceFactory> service_factories_; 60 ScopedVector<NavigatorConnectServiceFactory> service_factories_;
60 }; 61 };
61 62
62 } // namespace content 63 } // namespace content
63 64
64 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ 65 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/navigator_connect/navigator_connect_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698