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

Side by Side Diff: chrome/browser/extensions/api/messaging/native_message_port.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "base/threading/thread_checker.h"
9 #include "chrome/browser/extensions/api/messaging/message_service.h" 9 #include "chrome/browser/extensions/api/messaging/message_service.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 class NativeMessageProcessHost;
13 12
14 // A port that manages communication with a native application. 13 // A port that manages communication with a native application.
15 // All methods must be called on the UI Thread of the browser process. 14 // All methods must be called on the UI Thread of the browser process.
16 class NativeMessagePort : public MessageService::MessagePort { 15 class NativeMessagePort : public MessageService::MessagePort {
17 public: 16 public:
18 NativeMessagePort(base::WeakPtr<MessageService> message_service, 17 NativeMessagePort(base::WeakPtr<MessageService> message_service,
19 int port_id, 18 int port_id,
20 std::unique_ptr<NativeMessageHost> native_message_host); 19 std::unique_ptr<NativeMessageHost> native_message_host);
21 ~NativeMessagePort() override; 20 ~NativeMessagePort() override;
22 21
(...skipping 11 matching lines...) Expand all
34 scoped_refptr<base::SingleThreadTaskRunner> host_task_runner_; 33 scoped_refptr<base::SingleThreadTaskRunner> host_task_runner_;
35 int port_id_; 34 int port_id_;
36 std::unique_ptr<Core> core_; 35 std::unique_ptr<Core> core_;
37 36
38 base::WeakPtrFactory<NativeMessagePort> weak_factory_; 37 base::WeakPtrFactory<NativeMessagePort> weak_factory_;
39 }; 38 };
40 39
41 } // namespace extensions 40 } // namespace extensions
42 41
43 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_ 42 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGE_PORT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/messaging/message_service.h ('k') | chrome/browser/extensions/api/omnibox/omnibox_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698