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

Side by Side Diff: extensions/browser/api/messaging/native_messaging_channel.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 | remoting/base/auto_thread.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 EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_ 5 #ifndef EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_
6 #define EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_ 6 #define EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h"
9 10
10 namespace base { 11 namespace base {
11 class Value; 12 class Value;
12 } // namespace base 13 } // namespace base
13 14
14 namespace extensions { 15 namespace extensions {
15 16
16 // An interface to receive and send messages between a native component and 17 // An interface to receive and send messages between a native component and
17 // chrome. 18 // chrome.
18 class NativeMessagingChannel { 19 class NativeMessagingChannel {
(...skipping 17 matching lines...) Expand all
36 // Starts reading and processing messages. 37 // Starts reading and processing messages.
37 virtual void Start(EventHandler* event_handler) = 0; 38 virtual void Start(EventHandler* event_handler) = 0;
38 39
39 // Sends a message to the other endpoint. 40 // Sends a message to the other endpoint.
40 virtual void SendMessage(scoped_ptr<base::Value> message) = 0; 41 virtual void SendMessage(scoped_ptr<base::Value> message) = 0;
41 }; 42 };
42 43
43 } // namespace extensions 44 } // namespace extensions
44 45
45 #endif // EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_ 46 #endif // EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/auto_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698